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:
@ -84,8 +84,9 @@ const MemoList: React.FC<Props> = () => {
|
||||
.then(() => {
|
||||
setFetchStatus(false);
|
||||
})
|
||||
.catch(() => {
|
||||
toastHelper.error("😭 Fetching failed, please try again later.");
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
toastHelper.error(error.response.data.message);
|
||||
});
|
||||
}, []);
|
||||
|
||||
|
Reference in New Issue
Block a user