From 136028a3052e7769f7a7825b964e053f19db4036 Mon Sep 17 00:00:00 2001 From: Michael Vasseur Date: Sun, 20 Oct 2024 11:37:19 +0200 Subject: [PATCH] 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. --- judge/judgedaemon.main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/judge/judgedaemon.main.php b/judge/judgedaemon.main.php index fa27d9a775..8399571e13 100644 --- a/judge/judgedaemon.main.php +++ b/judge/judgedaemon.main.php @@ -839,8 +839,8 @@ function fetch_executable_internal( $run_config['hash'] ); if (isset($error)) { - // FIXME - continue; + $scriptId = $judgeTask['run_script_id']; + error("Retrieving/storing debug script '$scriptId' failed."); } $debug_cmd = implode(' ', array_map('dj_escapeshellarg',