Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/kd_clients/core/Utils.ts>Utils.toErrorMessage

Various HTTP clients for miscellaneous use.
Latest
method Utils.toErrorMessage
import { Utils } from "https://deno.land/x/kd_clients@v1.0.0-preview.13/core/Utils.ts";

Combines the given mainMsg and requestResponse error messages into one error message.

Parameters

mainMsg: string

The main error message.

The request response that might contain more error messages.

Returns

string

The main and response error messages combined.