How to write to stderr in Nim?
It is not possible to redirect echo
, but the same can be achieved by using writeLine
on the stderr
handle (no special imports required):
stderr.writeLine("Error: ", 42)
Documentation links:
writeLine
instreams
modulestderr
insystem
module