From 8a45b44c66bbae92c29a3d3525817ec99a1ce286 Mon Sep 17 00:00:00 2001 From: Bryan Oltman Date: Tue, 28 May 2024 10:49:26 -0400 Subject: [PATCH] chore(shorebird_cli): tweak public+private key error message --- packages/shorebird_cli/lib/src/extensions/arg_results.dart | 2 +- .../test/src/commands/patch/patch_command_test.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/shorebird_cli/lib/src/extensions/arg_results.dart b/packages/shorebird_cli/lib/src/extensions/arg_results.dart index 86683cc0..0838ec96 100644 --- a/packages/shorebird_cli/lib/src/extensions/arg_results.dart +++ b/packages/shorebird_cli/lib/src/extensions/arg_results.dart @@ -70,7 +70,7 @@ extension CodeSign on ArgResults { assertAbsentOrValidPublicKey(); assertAbsentOrValidPrivateKey(); } else { - logger.err('Both public and private keys must be provided or absent.'); + logger.err('Both public and private keys must be provided.'); exit(ExitCode.usage.code); } } diff --git a/packages/shorebird_cli/test/src/commands/patch/patch_command_test.dart b/packages/shorebird_cli/test/src/commands/patch/patch_command_test.dart index af9f47d0..127bfede 100644 --- a/packages/shorebird_cli/test/src/commands/patch/patch_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/patch/patch_command_test.dart @@ -354,7 +354,7 @@ void main() { ); verify( () => logger.err( - 'Both public and private keys must be provided or absent.', + 'Both public and private keys must be provided.', ), ).called(1); }); @@ -380,7 +380,7 @@ void main() { ); verify( () => logger.err( - 'Both public and private keys must be provided or absent.', + 'Both public and private keys must be provided.', ), ).called(1); });