Skip to content

Commit 671da70

Browse files
author
Michael Vasseur
committed
Fail when downloading/verifying the debug script fails
In the past we would continue but crashing is probably the better option as this would either indicate connection errors between domserver & judgehost or even a problem on the judgehost itself.
1 parent 8d5af54 commit 671da70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

judge/judgedaemon.main.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,8 +900,8 @@ function fetch_executable_internal(
900900
$run_config['hash']
901901
);
902902
if (isset($error)) {
903-
// FIXME
904-
continue;
903+
$scriptId = $judgeTask['run_script_id'];
904+
error("Retrieving/storing debug script '$scriptId' failed.");
905905
}
906906

907907
$debug_cmd = implode(' ', array_map('dj_escapeshellarg',

0 commit comments

Comments
 (0)