Returns an error when the given ThingsDB code contains a syntax error.
This function does not generate a change.
syntax_err([message])
Argument | Type | Description |
---|---|---|
message | str (optional) | Alternative error message. |
An error value (in a client response, an error value will be packed as a string value with the error message).
This code shows syntax_err():
syntax_err();
Return value in JSON format
"syntax error in query"