We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49390d7 commit 6df6a0aCopy full SHA for 6df6a0a
src/util/error.ts
@@ -25,9 +25,11 @@ export const throwAndDelegateError = (
25
}
26
27
const err = error as any;
28
- if (err.code || err.response?.status) {
+ if (err.code || err.status || err.response?.status) {
29
const status =
30
- err.response?.status || (err.code ? parseInt(err.code) : 500);
+ err.status ||
31
+ err.response?.status ||
32
+ (err.code ? parseInt(err.code) : 500);
33
34
var errorType: IntegrationErrorType;
35
switch (status) {
0 commit comments