MCPcopy
hub / github.com/HisMax/RedInk / formatErrorMessage

Function formatErrorMessage

frontend/src/utils/errors.ts:54–57  ·  view source on GitHub ↗
(error: ErrorLike, fallbackTitle = '操作失败')

Source from the content-addressed store, hash-verified

52}
53
54export function formatErrorMessage(error: ErrorLike, fallbackTitle = '操作失败'): string {
55 const appError = normalizeApiError(error, fallbackTitle)
56 return `${appError.title}:${appError.suggestion || appError.detail}`
57}
58
59export function diagnosticsText(error: AppError): string {
60 const payload = {

Callers 3

retrySingleImageFunction · 0.90
retryAllFailedFunction · 0.90
startGenerationFlowFunction · 0.90

Calls 1

normalizeApiErrorFunction · 0.85

Tested by

no test coverage detected