chore(remote_judger): more error details
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-04-28 09:55:03 +08:00
parent 8d7be35797
commit 8f3120c3f0
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
2 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ export default async function daemon(config: UOJConfig) {
status: 'Judged',
score: 0,
error: 'Judgment Failed',
details: `<error>${htmlspecialchars(err.message)}</error>`,
details: `<error>${htmlspecialchars(err.stack)}</error>`,
}),
judge_time,
});

View File

@ -39,7 +39,7 @@ class AccountService {
} catch (e) {
logger.error(e);
await end({ error: true, status: 'Judgment Failed', message: e.message });
await end({ error: true, status: 'Judgment Failed', message: e.stack });
}
}