Skip to content

Commit cf403d1

Browse files
committed
added axios catch block
1 parent 39ccfc6 commit cf403d1

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)