update-ngxblocker: print all curl errors

* also print curl errors besides 404 / timeouts
This commit is contained in:
Stuart Cardall 2017-08-26 20:10:21 +00:00
parent 88179046f5
commit 287d8688cd
No known key found for this signature in database
GPG key ID: AEB857F1C891D0C6

View file

@ -289,6 +289,7 @@ main() {
;;
22) printf "...${BOLDRED}ERROR 404: $url${RESET}\n\n";;
28) printf "...${BOLDRED}ERROR TIMEOUT: $url${RESET}\n\n";;
*) printf "...${BOLDRED}ERROR CURL: ($retval){RESET}\n\n";;
esac
# download new bots.d / conf.d files