Skip to content

Commit e5effdf

Browse files
author
Mikk Mihkel Nurges
committed
Merge branch 'release/v1.17.2'
2 parents 129df24 + 1cfe2bc commit e5effdf

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)