mirror of
https://github.com/NixOS/nix
synced 2025-06-25 23:11:16 +02:00
Make fetchTree locked input error message clearer
This commit is contained in:
parent
7f5ed330e4
commit
06bed2eacd
1 changed files with 4 additions and 1 deletions
|
@ -167,6 +167,9 @@ static void fetchTree(
|
||||||
input = lookupInRegistries(state.store, input).first;
|
input = lookupInRegistries(state.store, input).first;
|
||||||
|
|
||||||
if (evalSettings.pureEval && !input.isLocked())
|
if (evalSettings.pureEval && !input.isLocked())
|
||||||
|
if (type == "git")
|
||||||
|
state.debugThrowLastTrace(EvalError("in pure evaluation mode, 'fetchGit' requires a locked input, at %s", state.positions[pos]));
|
||||||
|
else
|
||||||
state.debugThrowLastTrace(EvalError("in pure evaluation mode, 'fetchTree' requires a locked input, at %s", state.positions[pos]));
|
state.debugThrowLastTrace(EvalError("in pure evaluation mode, 'fetchTree' requires a locked input, at %s", state.positions[pos]));
|
||||||
|
|
||||||
state.checkURI(input.toURLString());
|
state.checkURI(input.toURLString());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue