Skip to content

Commit a393941

Browse files
authored
Optimized the format of command error logs. (#6829)
1 parent b1ca858 commit a393941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
188188
throw $exception;
189189
}
190190

191-
$this->output && $this->error($exception->getMessage());
191+
$this->output?->error((string) $exception);
192192

193193
$this->exitCode = self::FAILURE;
194194

0 commit comments

Comments
 (0)