Skip to content

Commit 9b69f2c

Browse files
author
fasfsfgs
committed
Ignore nrepl process stderr.
This closes #47 and closes #48.
1 parent b5562fe commit 9b69f2c

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/nreplController.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,19 @@ const start = (): Promise<CljConnectionInformation> => {
4646
});
4747

4848
nreplProcess.stderr.on('data', data => {
49+
console.info('nrepl stderr =>', data.toString());
50+
});
51+
52+
nreplProcess.on('exit', (code, signal) => {
53+
console.info(`nREPL exit => ${code} / Signal: ${signal}`);
4954
stop();
50-
return reject(`This error happened with our nREPL process: ${data}`);
55+
return reject();
5156
});
5257

5358
nreplProcess.on('close', (code, signal) => {
59+
console.info(`nREPL close => ${code} / Signal: ${signal}`);
5460
stop();
55-
return reject(`Our nREPL was closed. Code: ${code} / Signal: ${signal}`);
61+
return reject();
5662
});
5763
});
5864
};

0 commit comments

Comments
 (0)