aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-05-01 18:07:36 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-05-01 20:44:30 +0200
commitab9e47284a46f1a933d84c9c66f8fb4ba6c4ba34 (patch)
tree4ebc23fcbd860efdb1bb8af3ee46bdbb2482e997 /src/libexpr
parent43408d3cd6e254c1c69eb9cf9de4de042b986ab6 (diff)
Improve error message
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/primops/flake.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops/flake.cc b/src/libexpr/primops/flake.cc
index 41b3f6d28..293e5ad0b 100644
--- a/src/libexpr/primops/flake.cc
+++ b/src/libexpr/primops/flake.cc
@@ -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