Function getErrorMessage

  • Get the error message from an unknown error.

    Parameters

    • error: unknown

      The error to get the message from

    Returns string

    The error message