inventory: add better error for missing file
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user