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()) {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/fps-importer",
"version": "1.3.0",
"version": "1.3.1",
"description": "Import FPS problems",
"main": "package.json",
"repository": "https://github.com/hydro-dev/Hydro.git",