diff --git a/packages/shorebird_cli/lib/src/shorebird_cli_command_runner.dart b/packages/shorebird_cli/lib/src/shorebird_cli_command_runner.dart index b9aff0d16..3234f8e5a 100644 --- a/packages/shorebird_cli/lib/src/shorebird_cli_command_runner.dart +++ b/packages/shorebird_cli/lib/src/shorebird_cli_command_runner.dart @@ -210,7 +210,7 @@ Engine • revision ${shorebirdEnv.shorebirdEngineRevision}'''); return ExitCode.usage.code; } catch (error, stackTrace) { logger - ..detail('$error') + ..err('$error') ..detail('$stackTrace'); exitCode = ExitCode.software.code; } diff --git a/packages/shorebird_cli/test/src/shorebird_cli_command_runner_test.dart b/packages/shorebird_cli/test/src/shorebird_cli_command_runner_test.dart index 51a57cd0c..1d124d431 100644 --- a/packages/shorebird_cli/test/src/shorebird_cli_command_runner_test.dart +++ b/packages/shorebird_cli/test/src/shorebird_cli_command_runner_test.dart @@ -272,7 +272,7 @@ Engine • revision $shorebirdEngineRevision''', await runWithOverrides( () => commandRunner.run(['release', 'android', '--verbose']), ); - verify(() => logger.detail(any(that: contains('Bad state')))).called(1); + verify(() => logger.err(any(that: contains('Bad state')))).called(1); verify(() => logger.detail(any(that: contains('#0')))).called(1); });