I know there is echo, which writes to stdout. Is it possible to redirect echo to stderr, or is there another way to write to stderr?
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 in streams modulestderr in system moduleIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With