From 509961e11d6879504942fe38129809875b22825f Mon Sep 17 00:00:00 2001 From: Ian Leonard Date: Sat, 19 Oct 2024 02:26:50 -0400 Subject: [PATCH] tools/distro-tool: error on 400 series http status codes Signed-off-by: Ian Leonard --- tools/distro-tool | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/distro-tool b/tools/distro-tool index 150eaf5f32..00441bc0bd 100755 --- a/tools/distro-tool +++ b/tools/distro-tool @@ -357,7 +357,7 @@ class MyUtility(object): while attempts < retries: if stopped.is_set(): break attempts += 1 - (result, output) = MyUtility.runcommand(msgs, f"curl --silent --show-error --connect-timeout 30 --retry 3 --continue-at - --location --max-redirs 5 --output {filename_data} {url}", logfile=filename_log) + (result, output) = MyUtility.runcommand(msgs, f"curl --silent --show-error --fail --connect-timeout 30 --retry 3 --continue-at - --location --max-redirs 5 --output {filename_data} {url}", logfile=filename_log) if result == 0: return True