errorln
Global, available without an import
errorln(...)
Writes its arguments to the error stream, followed by a newline.
Parameters
... | any | values to write; each is converted the same way print converts its arguments repeats |
Return value
null.
Notes
Same stream as error, and the same one-space join between several arguments; the only difference from error is the trailing newline, matching how println differs from print.
Example
errorln("stderr:", "first", "line") // arguments join with one space, like println
errorln("stderr: second line")
println("stdout: unaffected")Output:
stderr: first line
stderr: second line
stdout: unaffectedSee also
error | Writes its arguments to the error stream. |
println | Writes its arguments to the output stream, followed by a newline. |
| globals | module index |