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

Commit

Permalink
Merge pull request #79 from microservices-demo/check-status-code
Browse files Browse the repository at this point in the history
Check response status code
  • Loading branch information
vlal authored Mar 15, 2017
2 parents 31e7c34 + 55db39b commit 62d2a17
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 62d2a17

Please sign in to comment.