diff --git a/src/libexpr/flake/flake.cc b/src/libexpr/flake/flake.cc index 1f68f3f29..76a81d032 100644 --- a/src/libexpr/flake/flake.cc +++ b/src/libexpr/flake/flake.cc @@ -149,7 +149,7 @@ static Flake readFlake( auto flakePath = rootDir + flakeDir + "flake.nix"; if (!flakePath.pathExists()) - throw Error("source tree referenced by '%s' does not contain a file named '%s'", resolvedRef, flakePath.path); + throw Error("file '%s' does not exist", flakePath); Value vInfo; state.evalFile(flakePath, vInfo, true);