vars: improve messaging
This commit is contained in:
@@ -228,7 +228,7 @@ in
|
|||||||
description = ''
|
description = ''
|
||||||
Whether the file should be deployed to the target machine.
|
Whether the file should be deployed to the target machine.
|
||||||
|
|
||||||
Enable this if the generated file is only used as an input to other generators.
|
Disable this if the generated file is only used as an input to other generators.
|
||||||
'';
|
'';
|
||||||
type = bool;
|
type = bool;
|
||||||
default = true;
|
default = true;
|
||||||
|
|||||||
@@ -30,7 +30,9 @@ in
|
|||||||
readFile file.config.path
|
readFile file.config.path
|
||||||
else
|
else
|
||||||
# if the file is not found, we want to downgrade the priority, to allow overriding via mkDefault
|
# if the file is not found, we want to downgrade the priority, to allow overriding via mkDefault
|
||||||
mkOptionDefault (throw "File not found: ${file.config.path}")
|
mkOptionDefault (
|
||||||
|
throw "Please run `clan vars generate ${config.clan.core.settings.machine.name}` as file was not found: ${file.config.path}"
|
||||||
|
)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user