diff --git a/Listener/Notifier.php b/Listener/Notifier.php index c0d6351..69d5b8c 100644 --- a/Listener/Notifier.php +++ b/Listener/Notifier.php @@ -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();