fix: added logging in actionClient (#3695)

This commit is contained in:
Piyush Gupta
2024-10-15 01:58:47 +05:30
committed by GitHub
parent f92a5eabc9
commit 8ca7c38def

View File

@@ -11,6 +11,7 @@ export const actionClient = createSafeActionClient({
} else if (e instanceof AuthorizationError) {
return e.message;
}
console.error("SERVER ERROR: ", e);
return DEFAULT_SERVER_ERROR_MESSAGE;
},