mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix problem_import error message
This commit is contained in:
1 file changed
+1
-1
@@ -485,7 +485,7 @@ export class ProblemModel {
|
|||||||
}
|
}
|
||||||
const files = await fs.readdir(tmpdir, { withFileTypes: true });
|
const files = await fs.readdir(tmpdir, { withFileTypes: true });
|
||||||
problems = files.filter((f) => f.isDirectory()).map((i) => i.name);
|
problems = files.filter((f) => f.isDirectory()).map((i) => i.name);
|
||||||
} catch (e) {
|
} finally {
|
||||||
if (options.delSource) await fs.remove(tmpdir);
|
if (options.delSource) await fs.remove(tmpdir);
|
||||||
}
|
}
|
||||||
for (const i of problems) {
|
for (const i of problems) {
|
||||||
|
|||||||
Reference in new issue
Block a user