mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 20:25:32 +03:00
nixos/modules/image: fix error message
When a module is not found, it did not show the intended error message `The module ... does not exist`, but rather `path ... does not exist`.
This commit is contained in:
parent
a9d6503abc
commit
5c28518c4b
1 changed files with 4 additions and 1 deletions
|
@ -47,7 +47,10 @@ let
|
|||
let
|
||||
module = ../. + "/installer/sd-card/sd-image-${pkgs.targetPlatform.qemuArch}.nix";
|
||||
in
|
||||
if builtins.pathExists module then [ module ] else throw "The module ${module} does not exist.";
|
||||
if builtins.pathExists module then
|
||||
[ module ]
|
||||
else
|
||||
throw "The module ${toString module} does not exist.";
|
||||
};
|
||||
kexec = ../installer/netboot/netboot-minimal.nix;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue