Skip to content

Commit a61dc1e

Browse files
authored
Merge pull request #66 from 3daddict/bugfix/axios-catch
added axios catch block
2 parents 39ccfc6 + cf403d1 commit a61dc1e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

shopify-dev-utils/storefrontApi.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ class StorefrontApi {
7272
}
7373
`
7474
)
75-
.then(({ data }) => data);
75+
.then(({ data }) => data)
76+
.catch(err => {
77+
console.log(err);
78+
res.sendStatus(500);
79+
});
7680
}
7781
}
7882

0 commit comments

Comments
 (0)