mvp-ai's picture
download
raw
475 Bytes
// Copyright (c) 2026 the Zuke contributors
// SPDX-License-Identifier: MIT
/**
* The message of a caught value — an `Error`'s message, anything else as a
* string — for the credential sources that wrap a failure in their own
* provider-and-step context.
*
* @module
*/
/** `error`'s message when it is an `Error`, else `error` as a string. */
export function messageOf(error: unknown): string {
return error instanceof Error ? error.message : String(error);
}

Xet Storage Details

Size:
475 Bytes
·
Xet hash:
5442b1d3d15b88a078c9a007564200c504f92d2ffabbcfa8bc2ba70cbba6ba75

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.