diff options
author | Qyriad <qyriad@qyriad.me> | 2024-05-22 17:15:45 -0600 |
---|---|---|
committer | Qyriad <qyriad@qyriad.me> | 2024-05-26 17:19:26 +0000 |
commit | 742c62a6eb3d5411a0ab748387060c28ca16a25a (patch) | |
tree | 2124d262398a4e4532f471d4b0cf7496c9189fc1 | |
parent | 5986a720d47041b79ead2d1f58a172f410d29db5 (diff) |
docstrings: NixRepl::getDerivationPath: exceptions directly thrown
getDerivationPath() directly throws nix::Error for invalid derivations
Change-Id: I81ead950060b789794fa683b61c6349fece1690d
-rw-r--r-- | src/libcmd/repl.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libcmd/repl.cc b/src/libcmd/repl.cc index 46b6d57ed..02aa5a272 100644 --- a/src/libcmd/repl.cc +++ b/src/libcmd/repl.cc @@ -107,6 +107,11 @@ struct NixRepl void initEnv() override; virtual StringSet completePrefix(const std::string & prefix) override; + + /** + * @exception nix::Error thrown directly if the expression does not evaluate + * to a derivation, or evaluates to an invalid derivation. + */ StorePath getDerivationPath(Value & v); ProcessLineResult processLine(std::string line); |