Skip to content

Commit

Permalink
Fix issue with maintenance mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tsiedsma committed May 18, 2016
1 parent 9a1df42 commit ddc077b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/LithiumDev/ExceptionMailer/ExceptionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ public function report(Exception $e)
}
}

/*
* If maintenance mode is enabled, a 500 error will be displayed instead of the error page
* Skip the mailer in this one instance
*/
if (app()->isDownForMaintenance())
{
$shouldReport = false;
}

if ($shouldReport)
{
$eMailer = App::make('ExceptionMailer');
Expand Down

0 comments on commit ddc077b

Please sign in to comment.