Simplify error message

This commit is contained in:
Eelco Dolstra 2022-08-17 15:22:58 +02:00
parent 795b21f0da
commit 18c6daf1a8

View file

@ -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);