MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / handleError

Function handleError

apps/web/ui/MatrixView/index.tsx:159–167  ·  view source on GitHub ↗
(error: any)

Source from the content-addressed store, hash-verified

157}
158
159function handleError(error: any) {
160 Toast.error(
161 error.status === 400
162 ? JSON.parse(error.details)
163 .map((c: any) => c.message)
164 .join('\n')
165 : 'Something went wrong'
166 );
167}

Callers 1

MatrixViewFunction · 0.85

Calls 2

mapMethod · 0.80
errorMethod · 0.65

Tested by

no test coverage detected