Add specific error message for 0 byte project data

To help diagnose https://github.com/TurboWarp/packager/issues/528
This commit is contained in:
GarboMuffin committed 2022-09-23 22:03:06 -05:00
1 parent 4c82e61257
commit f9919fe173
1 file changed
+4
+4
View File
@@ -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;