Skip to content

Commit

Permalink
Stop container if running while error throw
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchPierias committed Apr 26, 2019
1 parent fe1f9ed commit b87a85b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/cli/lamington-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ const run = async () => {
}
};

run().catch(error => {
throw error;
run().catch(async (error) => {
if (await eosIsReady()) {
stopContainer().then(() => {
//console.log(error)
process.exit(1);
});
} else {
console.log(error)
}
});

0 comments on commit b87a85b

Please sign in to comment.