error

View sourceerror(message: string): void

Writes a non-throwing error message to console.error with the engine log prefix.

The call receives exactly 🚀Chaos Engine:\n\n followed by message as its single argument. This function returns undefined.

Examples

error('The optional sound could not be loaded.')
// console.error('🚀Chaos Engine:\n\nThe optional sound could not be loaded.')

Parameters

NameDescriptionDefault
message

Error message to write.

—