MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / parseErrorMessage

Function parseErrorMessage

static/js/selfcheck.js:37–45  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

35}
36
37function parseErrorMessage(error) {
38 const detail = error?.data?.detail;
39 if (typeof detail === 'string') return detail;
40 if (detail && typeof detail === 'object') {
41 if (typeof detail.message === 'string') return detail.message;
42 return JSON.stringify(detail);
43 }
44 return error?.message || '请求失败';
45}
46
47function getRepairName(key) {
48 return selfcheckState.repairCatalog?.[key]?.name || key;

Callers 9

startRunFunction · 0.85
saveScheduleFunction · 0.85
runNowFunction · 0.85
executeRepairFunction · 0.85
previewRepairCenterFunction · 0.85
executeRepairCenterFunction · 0.85
rollbackRepairPointFunction · 0.85
bindEventsFunction · 0.85
initSelfcheckPageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected