webCOMAND

#ERROR

Log an error event to the event log.  When the cScript is processed as part of a publish, the resulting file will not be output.  When the cScript is processed as part of a content validation (ie. from the Validate content type template), validation will fail.

Prototype

#ERROR($message)

Parameters

  • message - The error text to display.

Example

#IF($FirstName != '')
    #ERROR("First Name must be provided.")
#ENDIF

Related

#DEBUG, #NOTE, #WARNING