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