Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
Fix request passed as mail subject
Browse files Browse the repository at this point in the history
  • Loading branch information
nervo authored Oct 25, 2018
1 parent 8352806 commit ed1a86f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Listener/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public function createMailAndSend($exception, Request $request = null, $context
'command_input' => $commandInput,
));

if ($this->request) {
if ($request) {
$subject = '[' . $request->headers->get('host') . '] Error ' . $exception->getStatusCode() . ': ' . $exception->getMessage();
} elseif ($this->command) {
$subject = '[' . $this->command->getName() . '] Error ' . $exception->getStatusCode() . ': ' . $exception->getMessage();
Expand Down

0 comments on commit ed1a86f

Please sign in to comment.