UNPKG

@bitte-ai/agent-sdk

Version:

Agent SDK for Bitte Protocol

17 lines (16 loc) 439 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.errorString = errorString; function errorString(error) { // intentional == to check for null or undefined if (error == null) { return `unknown error: ${error}`; } if (typeof error === "string") { return error; } if (error instanceof Error) { return error.message; } return JSON.stringify(error); }