mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: update error message handler
This commit is contained in:
@ -64,7 +64,8 @@ const PreferencesSection: React.FC<Props> = () => {
|
||||
try {
|
||||
await api.createUser(userCreate);
|
||||
} catch (error: any) {
|
||||
toastHelper.error(error.message);
|
||||
console.error(error);
|
||||
toastHelper.error(error.response.data.message);
|
||||
}
|
||||
await fetchUserList();
|
||||
setState({
|
||||
|
Reference in New Issue
Block a user