Skip to content

Commit

Permalink
fix: Subscriptions page
Browse files Browse the repository at this point in the history
dogukanoksuz committed Feb 19, 2024
1 parent c9e5da9 commit 7aee362
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
@@ -98,6 +98,17 @@ public function register()
], Response::HTTP_INTERNAL_SERVER_ERROR);
});

if (config('app.debug')) {
$this->renderable(function (Throwable $e) {
return response()->json([
'type' => get_class($e),
'message' => $e->getMessage(),
'file' => $e->getFile(),
'line' => $e->getLine(),
'trace' => $e->getTrace(),
], Response::HTTP_INTERNAL_SERVER_ERROR);
});
}
$this->renderable(function (Throwable $e) {
return response()->json([
'type' => get_class($e),
Original file line number Diff line number Diff line change
@@ -96,6 +96,7 @@ public function show(Extension $extension, Server $server)
[
'endpoint' => 'license',
'type' => 'get',
'service' => 'admin'
]
);
$parsed = new GolangLicense($output);

0 comments on commit 7aee362

Please sign in to comment.