diff --git a/bin/exec.js b/bin/exec.js index 5adeaa0..8c0dcfd 100644 --- a/bin/exec.js +++ b/bin/exec.js @@ -8,6 +8,8 @@ const log = console.log; const config = reqCwd.silent('./.solcover.js') || {}; const app = new App(config); +death((signal, err) => app.cleanUp(err)); + app.generateCoverageEnvironment(); app.instrumentTarget(); app.launchTestrpc() @@ -17,5 +19,5 @@ app.launchTestrpc() }) .catch(err => log(err)); -death((signal, err) => app.cleanUp(err)); +