Skip to content

script.abort

This function is used to cancel the execution of a process when an un-handled error has occurred.

js
script.abort(reasonText)
script.abort(reasonText)

Parameters

  • reasonText - the line of text to output which explains why the process is aborting.

Example

js
script.abort('Something was not as expected.');
script.abort('Something was not as expected.');