From baed2d33b8b62b11203dc41c5604cf312781b19d Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Mon, 1 Sep 2025 12:27:19 +0530 Subject: [PATCH] Provide better error in tools' setup --- src/scripts/tools/add_tools.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/scripts/tools/add_tools.sh b/src/scripts/tools/add_tools.sh index 15014f6e..3dc23e32 100644 --- a/src/scripts/tools/add_tools.sh +++ b/src/scripts/tools/add_tools.sh @@ -200,7 +200,11 @@ add_tool() { elif [ -e /tmp/"$tool" ]; then sudo cp -a /tmp/"$tool" "$tool_path" fi - add_log "$cross" "$tool" "Could not setup $tool" + if [ "$status_code" = "404" ]; then + add_log "$cross" "$tool" "Failed to download $tool from ${url[*]}" + else + add_log "$cross" "$tool" "Could not setup $tool" + fi fi }