Commit 5c28518c authored by Alexander Foremny's avatar Alexander Foremny
Browse files

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`.
parent a9d6503a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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;
  };