inventory: add better error for missing file

This commit is contained in:
Johannes Kirschbauer
2025-02-05 10:26:05 +07:00
parent 34ed0e8b0b
commit b21c14d8a5

View File

@@ -68,7 +68,7 @@ let
if (builtins.pathExists readme) then if (builtins.pathExists readme) then
(builtins.readFile readme) (builtins.readFile readme)
else else
throw "No README.md found for module ${modulename}"; throw "No README.md found for module ${modulename} (expected at ${readme})";
in in
readmeContents; readmeContents;