diff --git a/packages/fps-importer/handler.ts b/packages/fps-importer/handler.ts index 41d473897..cfddf1ce6 100644 --- a/packages/fps-importer/handler.ts +++ b/packages/fps-importer/handler.ts @@ -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()) { diff --git a/packages/fps-importer/package.json b/packages/fps-importer/package.json index e44c92541..41d71f82f 100644 --- a/packages/fps-importer/package.json +++ b/packages/fps-importer/package.json @@ -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",