It's a callback-based API for asynchronous execution in JavaScript, so you can't use try catch here. If an API based on async await was used, then try catch would work.
Is there an error if the error is set as null or since the error is set as null there is no error, thus generating an error since no error were detected?
43
u/LegoMyEggoNerd Jan 13 '22
the most smart, yet caveman brain solution I could think of, I just hate that it works
19
u/dummyDummyOne Jan 13 '22
process.on(‘SIGINT’, =>{})
my own hell and mine alone
94
u/onichama Jan 13 '22
There is no error in Ba Sing Se
10
u/onichama Jan 13 '22
Image Transcription: Code
I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!
1
u/yard2010 Jan 13 '22
That's a tautology
1
u/RaymondTracing Feb 05 '22
All of my rejections are un- handeled
2
u/blindgorgon Jan 13 '22
And if it doesn’t work
null2
u/RainDropsOnAWindow Jan 18 '22
If someone would reject me and I didn't know how to handle it, I'd too would like to have no error about it.
1
u/RaymondTracing Feb 05 '22
All of my rejections are unhandled
1
u/RaymondTracing Feb 05 '22
All of my rejections are unhandled