aboutsummaryrefslogtreecommitdiff
path: root/src/nix/eval.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/eval.cc')
-rw-r--r--src/nix/eval.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/eval.cc b/src/nix/eval.cc
index 243705587..a9e4c8968 100644
--- a/src/nix/eval.cc
+++ b/src/nix/eval.cc
@@ -98,13 +98,13 @@ struct CmdEval : MixJSON, InstallableValueCommand, MixReadOnlyOption
} catch (Error & e) {
e.addTrace(
state->positions[attr.pos],
- hintfmt("while evaluating the attribute '%s'", name));
+ HintFmt("while evaluating the attribute '%s'", name));
throw;
}
}
}
else
- throw TypeError("value at '%s' is not a string or an attribute set", state->positions[pos]);
+ state->error<TypeError>("value at '%s' is not a string or an attribute set", state->positions[pos]).debugThrow();
};
recurse(*v, pos, *writeTo);