mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-09-10 14:54:06 +07:00
Provide better error in tools' setup
This commit is contained in:
@ -200,8 +200,12 @@ add_tool() {
|
||||
elif [ -e /tmp/"$tool" ]; then
|
||||
sudo cp -a /tmp/"$tool" "$tool_path"
|
||||
fi
|
||||
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
|
||||
}
|
||||
|
||||
# Function to setup a tool using composer in a different scope.
|
||||
|
Reference in New Issue
Block a user