mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 14:08:51 +02:00
Fix up Clara.io error handling
This commit is contained in:
parent
1b05ae8a82
commit
7e56d0fae6
1 changed files with 6 additions and 10 deletions
|
@ -226,26 +226,22 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
isDownloading = false;
|
||||||
|
|
||||||
var HTTP_OK = 200;
|
var HTTP_OK = 200;
|
||||||
if (this.status !== HTTP_OK) {
|
if (this.status !== HTTP_OK) {
|
||||||
statusMessage = "Zip file request terminated with " + this.status + " " + this.statusText;
|
statusMessage = "Zip file request terminated with " + this.status + " " + this.statusText;
|
||||||
console.log("ERROR: Clara.io FBX: " + statusMessage);
|
console.log("ERROR: Clara.io FBX: " + statusMessage);
|
||||||
EventBridge.emitWebEvent(CLARA_IO_STATUS + " " + statusMessage);
|
EventBridge.emitWebEvent(CLARA_IO_STATUS + " " + statusMessage);
|
||||||
return;
|
} else if (zipFileURL.slice(-4) !== ".zip") {
|
||||||
}
|
|
||||||
|
|
||||||
if (zipFileURL.slice(-4) !== ".zip") {
|
|
||||||
statusMessage = "Error creating zip file for download.";
|
statusMessage = "Error creating zip file for download.";
|
||||||
console.log("ERROR: Clara.io FBX: " + statusMessage + ": " + zipFileURL);
|
console.log("ERROR: Clara.io FBX: " + statusMessage + ": " + zipFileURL);
|
||||||
EventBridge.emitWebEvent(CLARA_IO_STATUS + " " + statusMessage);
|
EventBridge.emitWebEvent(CLARA_IO_STATUS + " " + statusMessage);
|
||||||
return;
|
} else {
|
||||||
|
EventBridge.emitWebEvent(CLARA_IO_DOWNLOAD + " " + zipFileURL);
|
||||||
|
console.log("Clara.io FBX: File download initiated for " + zipFileURL);
|
||||||
}
|
}
|
||||||
|
|
||||||
isDownloading = false;
|
|
||||||
|
|
||||||
EventBridge.emitWebEvent(CLARA_IO_DOWNLOAD + " " + zipFileURL);
|
|
||||||
console.log("Clara.io FBX: File download initiated for " + zipFileURL);
|
|
||||||
|
|
||||||
xmlHttpRequest = null;
|
xmlHttpRequest = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue