Skip to content

Commit d480ae5

Browse files
committed
Correct error message
1 parent 47c3917 commit d480ae5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli/arguments/arguments.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func CheckFlagsMandatory(command *cobra.Command, flagNames ...string) {
4444
if command.Flag(flagName).Changed {
4545
continue
4646
} else {
47-
feedback.Errorf(tr("Please use also %s flag when using %s flags at the same time.", "--"+flagName, "--"+strings.Join(flagNames, " "+tr("and")+" --")))
47+
feedback.Errorf(tr("Flag %[1]s is mandatory when used in conjunction with flag %[2]s.", "--"+flagName, "--"+strings.Join(flagNames, " "+tr("and")+" --")))
4848
os.Exit(errorcodes.ErrBadArgument)
4949
}
5050
}

test/test_compile_part_4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ def test_compile_with_fake_secure_boot_core(run_command, data_dir):
471471
]
472472
)
473473
assert res.failed
474-
assert "Please use also --sign-key flag when using --keys-keychain" in res.stderr
474+
assert "Flag --sign-key is mandatory when used in conjunction with flag --keys-keychain" in res.stderr
475475

476476
# Verifies compilation works with secure boot enabled and when overriding the sign key and encryption key used
477477
keys_dir = Path(data_dir, "keys_dir")

0 commit comments

Comments
 (0)