Commit 04723de
committed
Improve error handling for the graphql function. This only returns the
formatted errors for GraphQLError, which are effectively
pseudo-control-flow and part of expected execution. If it is another
error, we assume it is *programmer error* and rethrow so we get a
reasonable error message1 parent 40e7806 commit 04723de
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
| |||
0 commit comments