Skip to content

Commit 1cfe2bc

Browse files
author
Mikk Mihkel Nurges
committed
HandleErrors fix
1 parent 3339eb4 commit 1cfe2bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rebing/GraphQL/GraphQL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public static function handleErrors(array $errors, callable $formatter)
295295
foreach ($errors as $error) {
296296
// Try to unwrap exception
297297
$error = $error->getPrevious() ?: $error;
298-
if (!($error instanceof \Exception)) {
298+
if ($error instanceof \GraphQL\Error\Error) {
299299
continue;
300300
}
301301
$handler->report($error);

0 commit comments

Comments
 (0)