diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-04-02 19:03:32 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-04-02 19:03:32 +0200 |
commit | e1fc9f66900c1ea2b835bafbdc82beb7a10e88ff (patch) | |
tree | d8b0a0c6dcd9979472d9ab68c72f01ac6cde7edf | |
parent | ab47868639750010db01d7e846c9203bd7f00b2d (diff) |
Improve error message
-rw-r--r-- | src/libexpr/primops/fetchTree.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops/fetchTree.cc b/src/libexpr/primops/fetchTree.cc index 8a4970726..0838416df 100644 --- a/src/libexpr/primops/fetchTree.cc +++ b/src/libexpr/primops/fetchTree.cc @@ -81,7 +81,7 @@ static void prim_fetchTree(EvalState & state, const Pos & pos, Value * * args, V input = lookupInRegistries(state.store, input).first; if (evalSettings.pureEval && !input->isImmutable()) - throw Error("in pure evaluation mode, 'fetchTree' requires an immutable input"); + throw Error("in pure evaluation mode, 'fetchTree' requires an immutable input, at %s", pos); // FIXME: use fetchOrSubstituteTree auto [tree, input2] = input->fetchTree(state.store); |