masterplan-optimizer-frontend / formatApiErrorMessage
Function: formatApiErrorMessage()¶
formatApiErrorMessage(
payload,fallback):string
Defined in: src/lib/api.ts:42
Convert FastAPI error bodies into a bounded, human-readable message.
Parameters¶
payload¶
unknown
fallback¶
string
Returns¶
string