MCPcopy Create free account
hub / github.com/9d8dev/directory / handleError

Function handleError

lib/actions.ts:332–340  ·  view source on GitHub ↗
(
  error: Error | ErrorResponse,
)

Source from the content-addressed store, hash-verified

330};
331
332export async function handleError(
333 error: Error | ErrorResponse,
334): Promise<{ message: string }> {
335 if (error instanceof Error) {
336 return { message: error.message };
337 } else {
338 return { message: error.message };
339 }
340}
341
342export async function bulkUploadBookmarks(
343 prevState: ActionState | null,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected