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

@@ -409,7 +409,7 @@ const ChatPanel: FC = observer(() => {
OpenFileFolder(path, false);
});
}).catch(e => {
toast(t('Error') + ' - ' + e.message || e, { type: 'error', autoClose: 2500 });
toast(t('Error') + ' - ' + (e.message || e), { type: 'error', autoClose: 2500 });
});
}} />
</div>