Skip to content

Commit

Permalink
fix: specify host of origin in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas-C committed May 27, 2024
1 parent dafe2ce commit e063f73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/generate.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
addGeneratedSecretChecked = host: set: secretName: let
secret = nodes.${host}.config.age.secrets.${secretName};
sourceFile = assert assertMsg (secret.rekeyFile != null)
"age.secrets.${secretName}: `rekeyFile` must be set when using a generator.";
"Host ${host}: age.secrets.${secretName}: `rekeyFile` must be set when using a generator.";
relativeToFlake secret.rekeyFile;
script = secret.generator._script {
inherit secret pkgs;
Expand Down

0 comments on commit e063f73

Please sign in to comment.