From 0f91552c751f04cd0f179dbd66685af0dae7dd6e Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 22 Dec 2025 09:14:26 +0100 Subject: [PATCH] global-functions: $FetchHuge: handle missing file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This should not happen, as download was supposed to be successful - it does. 🤪 --- global-functions.rsc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/global-functions.rsc b/global-functions.rsc index 4bd7128..8303c7b 100644 --- a/global-functions.rsc +++ b/global-functions.rsc @@ -518,7 +518,11 @@ $RmDir $DirName; :return false; } - $WaitForFile $FileName; + + :if ([ $WaitForFile $FileName 5s ] = false) do={ + $LogPrint debug $0 ("The file downloaded from from " . $Url . " did not show up."); + :return false; + } :local FileSize [ /file/get $FileName size ]; :local Return "";