export function getErrorMessage(e, includeStack) {
    if (e instanceof Error) {
        return includeStack && e.stack ? e.stack : e.message;
    }
    return String(e);
}
export function isAbortError(e) {
    return e instanceof DOMException && e.name === "AbortError";
}
//# sourceMappingURL=errors.js.map