Commit 526bc1a
authored
Added Apollo Server GraphQL API error message for failed requests (aws#129)
Any expired security tokens or network connectivity errors when querying neptune resulted in a cryptic error message that was not helpful for debugging.
Instead of swallowing errors, added an error catch message with rethrow to ensure that when these errors result it returns a more useful error message that will help with the debugging of the error.1 parent e2e9346 commit 526bc1a
File tree
3 files changed
+5
-8
lines changed- templates
- ApolloServer
3 files changed
+5
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
| 37 | + | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | 76 | | |
| 77 | + | |
| 78 | + | |
81 | 79 | | |
0 commit comments