Closed hrishikesh-k closed 4 months ago
Hey. You need to handle the result, like this:
concurrently([ /* commands */ ], { /* options */ }).result.then(
() => console.log('exited successfully'),
() => console.error('exited with error'),
)
Thank you for the quick reply! That works! I read that part in the readme, but didn't think that was necessary to do. My assumption was this won't result in an error, but I should have just tried that path out first, sorry for the noise.
Hi!
I have a basic setup like:
This works like:
As you can see, it's working fine for the most part except towards the end. Not sure why it fails with
ERR_UNHANDLED_REJECTION
.If I remove
killOthers
, and manually exit by pressingCtrl + C
, it works without an issue. I also tried the following:And it exits correctly without any issues. Am I missing something?
I'm on Ubuntu 22.04 running Node.js 20.12.2.