mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-22 16:21:52 +00:00
chore(judger): show more details when judger error
This commit is contained in:
parent
e61141f508
commit
eb39c9ec04
@ -13,8 +13,17 @@ int main(int argc, char **argv) {
|
||||
rpc.limits = conf_run_limit("judger", 0, RL_JUDGER_DEFAULT);
|
||||
rpc.unsafe = true;
|
||||
runp::result res = runp::run(rpc);
|
||||
|
||||
if (res.type != runp::RS_AC) {
|
||||
end_judge_judgment_failed("Judgment Failed : Judger " + runp::rstype_str(res.type));
|
||||
stringstream msg;
|
||||
|
||||
msg << "Judgment Failed" << endl;
|
||||
msg << "\n------\n" << endl;
|
||||
msg << "Judger result: " << runp::rstype_str(res.type) << endl;
|
||||
msg << "Extra message: " << res.extra << endl;
|
||||
|
||||
end_judge_judgment_failed(msg.str());
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user