2 ms·
Extremely stupid question but when does it write to stderr without crashing the whole app?
by Kiro 10y ago
Extremely stupid question but when does it write to stderr without crashing the whole app?
- popey456963 10y agoWhenever there's an error which is non-fatal. Do console.error("Your error") and it'll write to stderr or alternatively process.stderr.write("Your Error\n"). Albeit rare in normal JS because it seems most things are fatal when they break, lots of libraries use it.