Livecode Wiki
Advertisement

Used with the write to file command to designate the standard error location.Syntax:

stderr

Examples:

write field 3 to stderr

Use the stderr keyword to write error messages to the [[standard error]] location, usually the screen or console window.

On Unix systems, error messages from a program are normally displayed on the console, but can be redirected to go to another device, process, or file. This redirection is done on the command line when the program is started up.

On a server, stderr is used as the target for default error messages if 'the errorMode ' is stderr and the default error handler is triggered.

When you use the write to file command with the stderr keyword, LiveCode writes data to the standard error location.

Support for using stderr on Server was added in version 4.6.3.

Changes: Support for using stderr on OS X systems was added in version 2.0.

See also: errorMode (property),

Advertisement