mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
fix(graphql): don't report request errors (#1014)
This commit is contained in:
@@ -201,10 +201,6 @@ HORIZON_PATH=horizon
|
||||
IMAGE_DISK=images_local
|
||||
IMAGE_DISK_ROOT=
|
||||
|
||||
# jetstream
|
||||
JETSTREAM_PATH=
|
||||
JETSTREAM_URL=http://localhost
|
||||
|
||||
# logging
|
||||
LOG_CHANNEL=daily
|
||||
LOG_DEPRECATIONS_CHANNEL=null
|
||||
|
||||
@@ -199,10 +199,6 @@ HORIZON_PATH=horizon
|
||||
IMAGE_DISK=images_local
|
||||
IMAGE_DISK_ROOT=
|
||||
|
||||
# jetstream
|
||||
JETSTREAM_PATH=
|
||||
JETSTREAM_URL=http://localhost
|
||||
|
||||
# logging
|
||||
LOG_CHANNEL=daily
|
||||
LOG_DEPRECATIONS_CHANNEL=null
|
||||
|
||||
@@ -7,6 +7,7 @@ namespace App\GraphQL\Handler;
|
||||
use Error as PhpError;
|
||||
use Exception;
|
||||
use GraphQL\Error\Error as GraphQLError;
|
||||
use GraphQL\Server\RequestError;
|
||||
use Illuminate\Contracts\Debug\ExceptionHandler;
|
||||
use Rebing\GraphQL\Error\AuthorizationError;
|
||||
use Rebing\GraphQL\Error\ValidationError;
|
||||
@@ -30,6 +31,9 @@ class ErrorHandler
|
||||
if ($error instanceof GraphQLError) {
|
||||
continue;
|
||||
}
|
||||
if ($error instanceof RequestError) {
|
||||
continue;
|
||||
}
|
||||
if (! $error instanceof Exception && ! $error instanceof PhpError) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user