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:
@ -46,7 +46,8 @@ const MyAccountSection: React.FC<Props> = () => {
|
||||
});
|
||||
toastHelper.info("Username changed");
|
||||
} catch (error: any) {
|
||||
toastHelper.error(error.message);
|
||||
console.error(error);
|
||||
toastHelper.error(error.response.data.message);
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user