Skip to content

Commit d103bd1

Browse files
author
Pavel.Batanov
committed
Fix PSR exception context key
1 parent 8f2132f commit d103bd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Console/EventListener/ErrorListener.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ public function onConsoleError(ConsoleErrorEvent $event)
4040
$error = $event->getError();
4141

4242
if (!$inputString = $this->getInputString($event)) {
43-
return $this->logger->error('An error occurred while using the console. Message: "{message}"', array('error' => $error, 'message' => $error->getMessage()));
43+
return $this->logger->error('An error occurred while using the console. Message: "{message}"', array('exception' => $error, 'message' => $error->getMessage()));
4444
}
4545

46-
$this->logger->error('Error thrown while running command "{command}". Message: "{message}"', array('error' => $error, 'command' => $inputString, 'message' => $error->getMessage()));
46+
$this->logger->error('Error thrown while running command "{command}". Message: "{message}"', array('exception' => $error, 'command' => $inputString, 'message' => $error->getMessage()));
4747
}
4848

4949
public function onConsoleTerminate(ConsoleTerminateEvent $event)

0 commit comments

Comments
 (0)