Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Check response status code
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishal Lal committed Mar 15, 2017
1 parent 31e7c34 commit 55db39b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/orders/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
async.waterfall([
function (callback) {
request(endpoints.customersUrl + "/" + custId, function (error, response, body) {
if (error) {
if (error || response.status_code === "500") {
callback(error);
return;
}
Expand Down

0 comments on commit 55db39b

Please sign in to comment.