Skip to content

Commit 5017759

Browse files
committed
Revert "Improve error handling for the graphql function. This only returns the"
This reverts commit 04723de.
1 parent 04723de commit 5017759

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/graphql.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { execute } from './executor/executor';
1515
import { formatError } from './error';
1616
import type { GraphQLFormattedError } from './error/formatError';
1717
import type { GraphQLSchema } from './type/schema';
18-
import { GraphQLError } from './error/GraphQLError';
18+
1919

2020
/**
2121
* This is the primary entry point function for fulfilling GraphQL operations
@@ -61,9 +61,6 @@ export function graphql(
6161
);
6262
}
6363
}).catch(error => {
64-
if (!(error instanceof GraphQLError)) {
65-
throw error;
66-
}
6764
return { errors: [ formatError(error) ] };
6865
});
6966
}

0 commit comments

Comments
 (0)