diff --git a/packages/ui-default/components/zipDownloader/index.js b/packages/ui-default/components/zipDownloader/index.js index 885ea406c..004eb502d 100644 --- a/packages/ui-default/components/zipDownloader/index.js +++ b/packages/ui-default/components/zipDownloader/index.js @@ -86,7 +86,9 @@ export async function downloadProblemSet(pids, name = 'Export') { let { links } = await request.post( `/d/${UiContext.domainId}/p/${pid}/files`, { operation: 'get_links', files: (pdoc.data || []).map((i) => i.name), type: 'testdata' } - ); + ).catch((e) => { + Notification.warn(`${e.error.message} ${e.error.params[0]}`); + }); for (const filename of Object.keys(links)) { targets.push({ filename: `${pid}/testdata/${filename}`, url: links[filename] }); } diff --git a/packages/ui-default/package.json b/packages/ui-default/package.json index 64f8403cf..7c5331aad 100644 --- a/packages/ui-default/package.json +++ b/packages/ui-default/package.json @@ -1,6 +1,6 @@ { "name": "@hydrooj/ui-default", - "version": "4.11.21", + "version": "4.11.22", "author": "undefined ", "license": "AGPL-3.0", "main": "hydro.js",