vjudge: handle problem resync & fix uoj

This commit is contained in:
undefined committed 2025-10-26 20:27:46 +08:00
1 parent f6a9dd3557
commit e8573d7061
10 files changed
+34 -32

No files matched your search

+1 -1
View File
@@ -325,7 +325,7 @@ class LocalStorageService {
async get(target: string, path?: string) {
target = resolve(this.dir, convertPath(target));
if (!existsSync(target)) throw new Error('File not found');
if (!existsSync(target)) throw new Error(`File not found: ${target}`);
if (path) await copyFile(target, path);
return createReadStream(target);
}