UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

13 lines (12 loc) • 559 B
import { n as formatErrorMessageWithCode } from "./errors-BSdPMFao.mjs"; import { f as errorShape } from "./error-codes-DI20vDEB.mjs"; import { n as copyErrorDiagnostic } from "./error-diagnostics-2SoBU17_.mjs"; //#region src/gateway/error-shape.ts /** Builds a wire error from an unknown failure without diagnostic class names. */ function errorShapeFromError(code, error, opts) { const shape = errorShape(code, formatErrorMessageWithCode(error), opts); copyErrorDiagnostic(error, shape); return shape; } //#endregion export { errorShapeFromError as t };