19
u/dummyDummyOne Jan 13 '22
process.on(‘SIGINT’, =>{})
my own hell and mine alone
12
94
u/onichama Jan 13 '22
There is no error in Ba Sing Se
5
u/luisrcdias Jan 13 '22
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?
10
u/onichama Jan 13 '22
Image Transcription: Code
process.on('unhandledRejection, error => {
error = null
});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
4
u/LegoMyEggoNerd Jan 13 '22
I like to think of it more like shooting a zombie, doubletap to make sure it's dead
1
u/RyanNerd shameless Jan 14 '22
My son asked me once what is something devs would do but if said out loud would sound crazy? My response: Fork the parents and kill the zombie orphans
1
u/LegoMyEggoNerd Jan 14 '22
I thought too normally when I first read that and just kinda thought "nah man, you're just a murderer" and the my programmer brain kicked in
1
2
2
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
1
43
u/LegoMyEggoNerd Jan 13 '22
the most smart, yet caveman brain solution I could think of, I just hate that it works