Function getErrorMessage

Returns the error message from the given error object.

  • Parameters

    • error: any

      The error object.

    Returns string

    The error message.