aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd/repl.cc
diff options
context:
space:
mode:
authorGuillaume Maudoux <layus.on@gmail.com>2023-01-20 13:01:03 +0100
committerGitHub <noreply@github.com>2023-01-20 13:01:03 +0100
commitee4b849b175fbc8c6548d7db3de7b5c7dc567be6 (patch)
tree10800592efd32d1aa7d3c69fb78aa2beebaedc54 /src/libcmd/repl.cc
parenta9fa2c758bad3385efb59b0d421c3b340d831798 (diff)
Fix unreachable error message
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
Diffstat (limited to 'src/libcmd/repl.cc')
-rw-r--r--src/libcmd/repl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcmd/repl.cc b/src/libcmd/repl.cc
index 9b12f8fa2..4158439b6 100644
--- a/src/libcmd/repl.cc
+++ b/src/libcmd/repl.cc
@@ -397,7 +397,7 @@ StringSet NixRepl::completePrefix(const std::string & prefix)
Expr * e = parseString(expr);
Value v;
e->eval(*state, *env, v);
- state->forceAttrs(v, noPos, "nevermind, it is ignored anyway");
+ state->forceAttrs(v, noPos, "while evaluating an attrset for the purpose of completion (this error should not be displayed; file an issue?)");
for (auto & i : *v.attrs) {
std::string_view name = state->symbols[i.name];