Merge pull request #3545 from derekpierre/public-keys-cleanup

`ursula public-keys` error message cleanup
pull/3554/head
Derek Pierre 2024-08-20 08:32:22 -04:00 committed by derekpierre
commit c1ad4e8154
No known key found for this signature in database
3 changed files with 2 additions and 2 deletions

View File

View File

@ -558,7 +558,7 @@ def public_keys(config_file, keystore_filepath, from_mnemonic):
raise click.BadOptionUsage(
"--keystore-filepath",
message=click.style(
"Exactly one of --keystore-filepath, --config-file, or --from-mnemonic must be specified",
"At most, one of --keystore-filepath, --config-file, or --from-mnemonic must be specified",
fg="red",
),
)

View File

@ -14,7 +14,7 @@ def test_ursula_public_keys_invalid(click_runner, ursula_test_config, custom_fil
ursula_config_file = custom_filepath / "ursula-test.json"
ursula_test_config._write_configuration_file(filepath=ursula_config_file)
expected_error = "Exactly one of --keystore-filepath, --config-file, or --from-mnemonic must be specified"
expected_error = "At most, one of --keystore-filepath, --config-file, or --from-mnemonic must be specified"
# config-file and keystore-filepath
public_keys_args = (