Register sigint handler immediately

pull/114/head
cgewecke 7 years ago
parent ef9f51f687
commit cb8f317be6
  1. 4
      bin/exec.js

@ -8,6 +8,8 @@ const log = console.log;
const config = reqCwd.silent('./.solcover.js') || {}; const config = reqCwd.silent('./.solcover.js') || {};
const app = new App(config); const app = new App(config);
death((signal, err) => app.cleanUp(err));
app.generateCoverageEnvironment(); app.generateCoverageEnvironment();
app.instrumentTarget(); app.instrumentTarget();
app.launchTestrpc() app.launchTestrpc()
@ -17,5 +19,5 @@ app.launchTestrpc()
}) })
.catch(err => log(err)); .catch(err => log(err));
death((signal, err) => app.cleanUp(err));

Loading…
Cancel
Save