Function errorMessage

  • Convert an error into a single message

    Parameters

    • error: unknown

      The error to stringify into a message

    Returns string

    The normalized error message with leading "Error:", "DescriptiveError:" removed