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