fps-import: do not catch FileTooLargeError

This commit is contained in:
undefined committed 2021-09-19 00:25:58 +08:00
1 parent 98c23bb2cc
commit 1a4fcd6433
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -110,6 +110,7 @@ class FpsProblemImportHandler extends Handler {
const result = await xml2js.parseStringPromise(content);
tasks.push(result);
} catch (e) {
if (e instanceof FileTooLargeError) throw e;
console.log(e);
const zip = new AdmZip(this.request.files.file.path);
for (const entry of zip.getEntries()) {