try catch in upload

This commit is contained in:
Keith Paterson 2021-05-28 10:22:08 +02:00
parent d7ffe7bcec
commit 5e0e2c9ea5

View File

@ -76,6 +76,7 @@ You should have received a copy of the GNU General Public License along with FG
},
methods: {
reqListener(e) {
try {
if(JSON.parse(e.srcElement.response).status==='OK') {
this.message = null;
this.azure = true;
@ -83,6 +84,9 @@ You should have received a copy of the GNU General Public License along with FG
} else {
this.message = 'Azure down';
}
} catch (error) {
console.error(error);
}
},
status () {