Skip to content

Commit

Permalink
Merge pull request #22 from Jagepard/wip
Browse files Browse the repository at this point in the history
Update handler
  • Loading branch information
Jagepard committed Jun 6, 2019
2 parents 7bae28a + 6491d38 commit 797f007
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions src/RouterException.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ public function handler($exception)
{
if (function_exists('config')) {
if (config('env') !== 'development') {
if (function_exists('rudra')) {
rudra()->get('debugbar')['exceptions']->addException($exception);
rudra()->get('router')->directCall(config('http.errors', $exception->getMessage()));
}
rudra()->get('debugbar')['exceptions']->addException($exception);
rudra()->get('router')->directCall(config('http.errors', $exception->getMessage()));
}
}

Expand Down
6 changes: 2 additions & 4 deletions src/RudraException.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ public function handler($exception)
{
if (function_exists('config')) {
if (config('env') !== 'development') {
if (function_exists('rudra')) {
rudra()->get('debugbar')['exceptions']->addException($exception);
rudra()->get('router')->directCall(config('http.errors', '503'));
}
rudra()->get('debugbar')['exceptions']->addException($exception);
rudra()->get('router')->directCall(config('http.errors', '503'));
}
}

Expand Down

0 comments on commit 797f007

Please sign in to comment.