import { i as formatErrorMessageWithCode } from "./errors-Z0lU1pH3.js";
import { d as errorShape } from "./error-codes-DEczInWy.js";
//#region src/gateway/error-shape.ts
/** Builds a wire error from an unknown failure without diagnostic class names. */
function errorShapeFromError(code, error, opts) {
	return errorShape(code, formatErrorMessageWithCode(error), opts);
}
//#endregion
export { errorShapeFromError as t };
