Provide better error in tools' setup

This commit is contained in:
Shivam Mathur
2025-09-01 12:27:19 +05:30
parent 1398cb4c9f
commit baed2d33b8

View File

@ -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
}