disko cli: fix misleading error message

Found this while trying to repro #523
This commit is contained in:
Felix Uhl 2024-10-14 11:49:11 +02:00 committed by mergify[bot]
parent b6215392ec
commit 3b2e19fe7c

View file

@ -64,7 +64,7 @@ let
else if (lib.traceValSeq hasDiskoModuleFlake) then
(builtins.getFlake flake).nixosConfigurations.${flakeAttr}.config.system.build.${diskoAttr}
else
(builtins.abort "neither diskoConfigurations.${flakeAttr} nor nixosConfigurations.${flakeAttr} found");
(builtins.abort "couldn't find `diskoConfigurations.${flakeAttr}` or `nixosConfigurations.${flakeAttr}.config.disko.devices`");
in
diskoScript