improve error messages

This commit is contained in:
josc146
2023-06-23 13:55:45 +08:00
parent 5c9b4a4c05
commit 447f4572b1
4 changed files with 21 additions and 6 deletions

View File

@@ -270,7 +270,7 @@ export async function checkUpdate(notifyEvenLatest: boolean = false) {
}
);
}).catch((e) => {
toast(t('Update Error') + ' - ' + e.message || e, {
toast(t('Update Error') + ' - ' + (e.message || e), {
type: 'error',
position: 'bottom-left',
autoClose: false
@@ -302,7 +302,7 @@ export async function checkUpdate(notifyEvenLatest: boolean = false) {
}
}
).catch((e) => {
toast(t('Updates Check Error') + ' - ' + e.message || e, { type: 'error', position: 'bottom-left' });
toast(t('Updates Check Error') + ' - ' + (e.message || e), { type: 'error', position: 'bottom-left' });
});
}