Jump to content

WaypointActions.errorHandler

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: waypointActions.errorHandler
Function Description: Captures and logs errors that occur during the execution of waypoint actions, providing a standardized error message with the error details for debugging and monitoring.
File Location: cmm.spawnFunctions.lua
Syntax: CMM.waypointActions.errorHandler( any _err )
Return Value: nil
Parameters: Name Description
_errThe error object or value that occurred during execution, passed from xpcall to capture and report errors.
Example: CMM.waypointActions.errorHandler("Failed to spawn unit at waypoint")
Example Description: Logs a formatted error message when an error occurs during a waypoint action execution, such as unit spawning failure.
Related Functions:
Notes: