Merge pull request 'vars: improve messaging' (#3372) from push-tktvqwxutpnx into main

Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3372
This commit is contained in:
Michael Hoang
2025-04-21 16:11:41 +00:00
2 changed files with 4 additions and 2 deletions

View File

@@ -228,7 +228,7 @@ in
description = ''
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;
default = true;

View File

@@ -30,7 +30,9 @@ in
readFile file.config.path
else
# 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}"
)
);
};
};