(e)
| 11 | // Base client. |
| 12 | export const actionClient = createSafeActionClient({ |
| 13 | handleServerError(e) { |
| 14 | console.error("Action error:", e.message); |
| 15 | |
| 16 | if (e instanceof ActionError) { |
| 17 | return e.message; |
| 18 | } |
| 19 | |
| 20 | return DEFAULT_SERVER_ERROR_MESSAGE; |
| 21 | }, |
| 22 | defineMetadataSchema() { |
| 23 | return z.object({ |
| 24 | actionName: z.string(), |
nothing calls this directly
no outgoing calls
no test coverage detected