mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
fps-import: do not catch FileTooLargeError
This commit is contained in:
1 parent
98c23bb2cc
commit
1a4fcd6433
2 files changed
+2
-1
No files matched your search
@@ -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()) {
|
||||
|
||||
Reference in new issue
Block a user