is_error

Check if a value is an Error

Returns true if the value is an Error object, false otherwise.

Parameters

Returns

True if x is an Error.

Examples

is_error(error("Something went wrong"))
-- Returns = true