YOU ARE VIEWING DOCUMENTATION FOR ioL v.1. Click here for documentation for older v.0.9x versions of ioL.
ioL

Programming manual (doc.iol.science)



<putError>

The putError tag provides a way to produce error messages, which on most operating systems will appear in the TTY terminal session in which the client application is being run, bypassing the client application.

The putError tag behaves identically to the putLn tag except the output is redirected to the standard erorr stream provided by operating system. The error message is terminated with a newline automatically.

This provides a convenient way to produce error messages to help with debugging, as well as to allow error messages to be redirected to a log-file depending on facilities provided by the host operating system.

Example

<if <gt 2,1> then=
  <putError {2 is greater than 1, this code is working}>
>

...should produce the following output in the TTY session that owns the client process:

2 is greater than 1, this code is working