Skip to content

Commit

Permalink
Removes check for debug mode for 500 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dmavrin committed Mar 6, 2017
1 parent f5bd90d commit d536cbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "lanin/laravel-api-exceptions",
"name": "dmavrin/laravel-api-exceptions",
"description": "All in one solution for exception for JSON REST APIs on Laravel and Lumen.",
"keywords": ["laravel", "framework", "api", "exceptions", "json"],
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/ApiException.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function toArray()
{
$e = $this;

if (env('APP_DEBUG') && $e instanceof ShowsPrevious && $this->getPrevious() !== null) {
if ($e instanceof ShowsPrevious && $this->getPrevious() !== null) {
$e = $this->getPrevious();
}

Expand Down

0 comments on commit d536cbb

Please sign in to comment.