Skip to content

Commit

Permalink
Merge pull request #50 from fasfsfgs/ignore-nrepl-stderr
Browse files Browse the repository at this point in the history
Ignore nrepl process stderr
  • Loading branch information
avli authored Jul 24, 2017
2 parents b5562fe + 9b69f2c commit 5de410f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions src/nreplController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,19 @@ const start = (): Promise<CljConnectionInformation> => {
});

nreplProcess.stderr.on('data', data => {
console.info('nrepl stderr =>', data.toString());
});

nreplProcess.on('exit', (code, signal) => {
console.info(`nREPL exit => ${code} / Signal: ${signal}`);
stop();
return reject(`This error happened with our nREPL process: ${data}`);
return reject();
});

nreplProcess.on('close', (code, signal) => {
console.info(`nREPL close => ${code} / Signal: ${signal}`);
stop();
return reject(`Our nREPL was closed. Code: ${code} / Signal: ${signal}`);
return reject();
});
});
};
Expand Down

0 comments on commit 5de410f

Please sign in to comment.