mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
Improve handling of zip file generation failing
This commit is contained in:
parent
9587b6a80e
commit
cbe8ce0c19
1 changed files with 6 additions and 3 deletions
|
@ -180,6 +180,9 @@
|
|||
// Extract zip file URL.
|
||||
if (data.hasOwnProperty("files") && data.files.length > 0) {
|
||||
zipFileURL = data.files[0].url;
|
||||
if (zipFileURL.slice(-4) !== ".zip") {
|
||||
console.log(JSON.stringify(data)); // Data for debugging.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -197,9 +200,9 @@
|
|||
return;
|
||||
}
|
||||
|
||||
if (zipFileURL === "") {
|
||||
statusMessage = "Download file URL not provided";
|
||||
console.log("ERROR: Clara.io FBX: " + statusMessage);
|
||||
if (zipFileURL.slice(-4) !== ".zip") {
|
||||
statusMessage = "Error creating zip file for download";
|
||||
console.log("ERROR: Clara.io FBX: " + statusMessage + ": " + zipFileURL);
|
||||
EventBridge.emitWebEvent(CLARA_IO_STATUS + " " + statusMessage);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue