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).


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


The message that was passed to the error function.


Simply prints an error message to the application messages window:

error(“Something bad happened”)

Produces the following in the application messages tool window: