UNPKG

everything-dev

Version:

A consolidated product package for building Module Federation apps with oRPC APIs.

17 lines (16 loc) • 910 B
//#region src/services/deploy/format.ts /** NEAR transaction failure wording for the publish train — unchanged from * the string-error era (ticket #422 port). */ function formatNearError(error) { const message = error instanceof Error ? error.message : String(error); if (message.includes("does not have enough allowance")) return `The publish access key has insufficient allowance to cover this transaction. Regenerate your key with a higher allowance: bos login --key Original: ${message}`; if (message.includes("exceeded gas") || message.includes("GasLimitExceeded")) return `Transaction exceeded gas limit.\n Original: ${message}`; if (message.includes("timeout") || message.includes("Timeout")) return `Transaction timed out. Check NEAR network status.\n Original: ${message}`; return message; } //#endregion exports.formatNearError = formatNearError; //# sourceMappingURL=format.cjs.map