chore: update error message toast

This commit is contained in:
Steven
2022-11-13 10:02:40 +08:00
parent 3a86e1338c
commit ca9590a49b
9 changed files with 37 additions and 27 deletions

View File

@@ -100,7 +100,7 @@ const CreateShortcutDialog: React.FC<Props> = (props: Props) => {
}
} catch (error: any) {
console.error(error);
toastHelper.error(error.response.data.error || error.response.data.message);
toastHelper.error(JSON.stringify(error.response.data));
}
};