Function checkErrorMessage

  • This function checks if the response of an error message is undefined and if it's the case it returns "ERROR_SERVER_NOT_AVAILABLE", otherwise it returns the response of the message

    Parameters

    • error: any

    Returns string