error

error( message )

Prints the given message to the Applications messages window in a bright “error” colour.

This error is saved into the database Events table and automatically associated with the current session, trial and phase (if applicable).

Arguments

message – The error message that will be printed to the application messages window

Returns

The message that was passed to the error function.

Example

Simply prints an error message to the application messages window:


error(“Something bad happened”)


Produces the following in the application messages tool window: