This is the ThingsDB documentation for version v0, click here for the latest version!

auth_err

Returns an error when authentication has failed.

This function does not generate an event.

Function

auth_err([message])

Arguments

Argument Type Description
message str (optional) Alternative error message.

Return value

An error value.

Example

This code shows auth_err():

auth_err();

Return value in JSON format

{
    "!": "auth_err()",
    "error_code": -56,
    "error_msg": "authentication error"
}