Improve error message

This commit is contained in:
Eelco Dolstra 2019-05-01 18:07:36 +02:00
parent 43408d3cd6
commit ab9e47284a

View file

@ -287,7 +287,7 @@ Flake getFlake(EvalState & state, const FlakeRef & flakeRef, bool impureIsAllowe
Path flakeFile = sourceInfo.storePath + "/" + resolvedRef.subdir + "/flake.nix";
if (!pathExists(flakeFile))
throw Error("source tree referenced by '%s' does not contain a 'flake.nix' file", resolvedRef);
throw Error("source tree referenced by '%s' does not contain a '%s/flake.nix' file", resolvedRef, resolvedRef.subdir);
Value vInfo;
state.evalFile(flakeFile, vInfo); // FIXME: symlink attack