errorUtil.js 449 B

12345678
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.errorUtil = void 0;
  4. var errorUtil;
  5. (function (errorUtil) {
  6. errorUtil.errToObj = (message) => typeof message === "string" ? { message } : message || {};
  7. errorUtil.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
  8. })(errorUtil = exports.errorUtil || (exports.errorUtil = {}));