Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Update ExceptionListener.php
Browse files Browse the repository at this point in the history
  • Loading branch information
puzakov committed Feb 5, 2016
1 parent e096ea4 commit 4f43611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventListener/ExceptionListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function onKernelException(GetResponseForExceptionEvent $event)
} else {
switch (substr($code, 0, 1)) {
case '4':
$message = $exception->getMessage();
$message = get_class($exception) === InvalidParametersException::class ? $exception->getMessage() : 'Input Error';
$this->logger->notice("Input error [logref $logRef]: " . $exception->__toString());
break;
case '5':
Expand Down

1 comment on commit 4f43611

@puzakov
Copy link
Author

@puzakov puzakov commented on 4f43611 Feb 5, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok. What do you think about this solution?

Please sign in to comment.