Function createErrorMessage

  • This function creates an error message given the code and the message returned by an API

    Parameters

    • code: number
    • msg: string

    Returns string

    a new response message with empty data