Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 1b57392

Browse files
committed
use default console exception template instead of empty string
fixed typo
1 parent ba5c1e1 commit 1b57392

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Service/ConsoleExceptionStrategyFactory.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ private function injectDisplayExceptions(ExceptionStrategy $strategy, array $con
6868
*/
6969
private function injectExceptionMessage(ExceptionStrategy $strategy, array $config)
7070
{
71-
$message = isset($config['exception_message']) ? $config['exception_message'] : '';
72-
$strategy->setMessage($message);
71+
if (isset($config['exception_message'])) {
72+
$strategy->setMessage($config['exception_message']);
73+
}
7374
}
7475
}

0 commit comments

Comments
 (0)