mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-21 21:48:42 +00:00
chore(remote_judger): more error details
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8d7be35797
commit
8f3120c3f0
@ -163,7 +163,7 @@ export default async function daemon(config: UOJConfig) {
|
|||||||
status: 'Judged',
|
status: 'Judged',
|
||||||
score: 0,
|
score: 0,
|
||||||
error: 'Judgment Failed',
|
error: 'Judgment Failed',
|
||||||
details: `<error>${htmlspecialchars(err.message)}</error>`,
|
details: `<error>${htmlspecialchars(err.stack)}</error>`,
|
||||||
}),
|
}),
|
||||||
judge_time,
|
judge_time,
|
||||||
});
|
});
|
||||||
|
@ -39,7 +39,7 @@ class AccountService {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
logger.error(e);
|
logger.error(e);
|
||||||
|
|
||||||
await end({ error: true, status: 'Judgment Failed', message: e.message });
|
await end({ error: true, status: 'Judgment Failed', message: e.stack });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user