Skip to content

Commit

Permalink
Fixed bug with rollback being called twice
Browse files Browse the repository at this point in the history
  • Loading branch information
AkhileshNS committed Feb 23, 2021
1 parent 11d2049 commit 87b54e1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,13 @@ if (heroku.dockerBuildArgs) {
try {
const res = await p(heroku.healthcheck);
if (res.statusCode !== 200) {
healthcheckFailed(heroku);
throw new Error(
"Status code of network request is not 200: Status code - " +
res.statusCode
);
}
if (heroku.checkstring && heroku.checkstring !== res.body.toString()) {
healthcheckFailed(heroku);
throw new Error("Failed to match the checkstring");
}
console.log(res.body.toString());
} catch (err) {
Expand Down

0 comments on commit 87b54e1

Please sign in to comment.