Skip to content

Commit

Permalink
Be more helpful when encountering malformed data in judge tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
meisterT committed Nov 23, 2024
1 parent 38bb2d2 commit 564ceb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion judge/judgedaemon.main.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function judging_directory(string $workdirpath, array $judgeTask) : string
{
if (filter_var($judgeTask['submitid'], FILTER_VALIDATE_INT) === false ||
filter_var($judgeTask['jobid'], FILTER_VALIDATE_INT) === false) {
error("Malformed data returned in judgeTask IDs");
error("Malformed data returned in judgeTask IDs: " . var_export($judgeTask, true));
}

return $workdirpath . '/'
Expand Down

0 comments on commit 564ceb7

Please sign in to comment.