MCPcopy Create free account
hub / github.com/SwishHQ/spread / formatErrorMessage

Function formatErrorMessage

web/src/api/client.ts:7–12  ·  view source on GitHub ↗
(message: string | string[])

Source from the content-addressed store, hash-verified

5
6// Helper function to format error messages
7const formatErrorMessage = (message: string | string[]): string => {
8 if (Array.isArray(message)) {
9 return message.join("\n");
10 }
11 return message;
12};
13
14// Create axios instance with default config
15const client = axios.create({

Callers 1

apiRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected