From WoWWiki
This function is not a real API. It is defined by FrameXML in FrameXML/BasicControls.xml.
function _ERRORMESSAGE(message)
This has the same effect as the UI message() function.
To use this as of version 2.1 set the cvar "scriptErrors" to 1 via the SetCVar() function.