Don't show an error pop up when cancelling an upload manually.

This commit is contained in:
flash 2025-01-04 02:29:04 +00:00
parent 8083ad6a20
commit 76db2dd26a
2 changed files with 2 additions and 2 deletions

View file

@ -69,7 +69,7 @@ const MamiEEPROM = function(endPoint, getAuthLine) {
return Object.freeze(body); return Object.freeze(body);
} catch(ex) { } catch(ex) {
if(userAborted) if(userAborted)
throw 'Upload has been cancelled by the user.'; throw '';
console.error(ex); console.error(ex);
throw ex; throw ex;

View file

@ -784,7 +784,7 @@ const MamiInit = async args => {
if(settings.get('eepromAutoInsert')) if(settings.get('eepromAutoInsert'))
entry.clickOption('insert'); entry.clickOption('insert');
} catch(ex) { } catch(ex) {
if(!ex.aborted) { if(ex !== '') {
console.error(ex); console.error(ex);
ctx.msgbox.show({ body: ['An error occurred while trying to upload a file:', ex] }); ctx.msgbox.show({ body: ['An error occurred while trying to upload a file:', ex] });
} }