Skip to content

Function: abort()

ts
function abort(format: string, ...rest: AnyArgs): never;

Print the current stack and raise a formatted Lua error.

Error messages should start with a capital letter and end with a period.

Parameters

ParameterTypeDescription
formatstringC-like formatted string for interpolation.
...restAnyArgsRest parameters to interpolate into format string.

Returns

never