We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8d3a10a + 43d83bc commit e17e7aaCopy full SHA for e17e7aa
src/Exceptions/ExceptionHandler.php
@@ -96,7 +96,7 @@ public function report(Throwable $e)
96
die;
97
}
98
99
- if (\request()->is('api/*')) {
+ if (\request()->is('api/*') or \request()->is('oauth-api/*')) {
100
if ($e instanceof AuthenticationException or $e instanceof \League\OAuth2\Server\Exception\OAuthServerException) {
101
return $this->unauthenticated(\request(), $e);
102
@@ -105,7 +105,6 @@ public function report(Throwable $e)
105
106
$error_list = trans("visiosoft.module.connect::errors");
107
108
-
109
$message = (!array_value($error_list, $error_code)) ? $e->getMessage() : trans("visiosoft.module.connect::errors." . $error_code);
110
111
if (strlen($error_code) > 3 || $error_code == 0) {
0 commit comments