@base-web-kits/base-tools-web 1.3.18 → 1.3.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2177,7 +2177,7 @@ var baseToolsWeb = (() => {
2177
2177
  return;
2178
2178
  }
2179
2179
  if (!isAbortError && toastError)
2180
- (_i = appConfig2.toast) == null ? void 0 : _i.call(appConfig2, { status, msg: `\u8BF7\u6C42\u5931\u8D25,${String(e)}` });
2180
+ (_i = appConfig2.toast) == null ? void 0 : _i.call(appConfig2, { status, msg: `\u8BF7\u6C42\u5931\u8D25,${JSON.stringify(e)}` });
2181
2181
  logRequestInfo({ status, config: logConfig, startTime, e });
2182
2182
  reject(e);
2183
2183
  } finally {
@@ -2227,7 +2227,7 @@ var baseToolsWeb = (() => {
2227
2227
  info.res = cloneDeep(res);
2228
2228
  log("info", info);
2229
2229
  } else {
2230
- info.e = e instanceof Error ? { name: e.name, message: e.message, stack: e.stack } : String(e);
2230
+ info.e = e instanceof Error ? { name: e.name, message: e.message, stack: e.stack } : e;
2231
2231
  log("error", info);
2232
2232
  }
2233
2233
  }