Skip to content

Commit 819a3c2

Browse files
committed
Handle missing zip assets non-catastrophically
Combined with previous commit, this hopefully fixes #993
1 parent f6b76c4 commit 819a3c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/packager/packager.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,8 @@ cd "$(dirname "$0")"
11211121
const path = assetId + '.' + dataFormat;
11221122
const file = findFileInZip(path);
11231123
if (!file) {
1124-
throw new Error('Asset is not in zip: ' + path)
1124+
console.error('Asset is not in zip: ' + path);
1125+
return Promise.resolve(null);
11251126
}
11261127
return file
11271128
.async('uint8array')

0 commit comments

Comments
 (0)