Add specific error message for 0 byte project data
To help diagnose https://github.com/TurboWarp/packager/issues/528
This commit is contained in:
1 parent
4c82e61257
commit
f9919fe173
1 file changed
+4
@@ -851,6 +851,10 @@ cd "$(dirname "$0")"
|
||||
}
|
||||
|
||||
async generateGetProjectData () {
|
||||
if (this.project.arrayBuffer.byteLength === 0) {
|
||||
throw new Error('Project data has 0 bytes');
|
||||
}
|
||||
|
||||
let result = '';
|
||||
let getProjectDataFunction = '';
|
||||
let isZip = false;
|
||||
|
||||
Reference in new issue
Block a user