Whenever 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.
Albeit rare in normal JS because it seems most things are fatal when they break, lots of libraries use it.