Skip to content

failure

failure(reply: Reply): string | null

Returns the error message from a failed parse reply.

If the reply is not, in fact, a failure, this function returns null.

Parameters

  • reply: A parse reply, presumably the return value of a call to parse.

Returns

  • Returns the error message that comes from the parse reply, if it was unsuccessful. If it succeeded, null is returned..

See Also