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

Commit

Permalink
Merge pull request #84 from Elao/fix/request-mail-subject
Browse files Browse the repository at this point in the history
Fix request passed as mail subject
  • Loading branch information
nervo authored Oct 30, 2018
2 parents 8352806 + ed1a86f commit dee3f8f
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 dee3f8f

Please sign in to comment.