diff options
author | Teddy Wing | 2018-04-18 22:10:11 +0200 |
---|---|---|
committer | Teddy Wing | 2018-04-18 22:10:11 +0200 |
commit | a7a6413b45b63fa70a2fa5a6866ae9b86b86e2de (patch) | |
tree | b687662d84ee3de15ad5d3fc732f66d0e5670eca | |
parent | e0ea6a97407746dc43aca20d6f5608873c162821 (diff) | |
download | redprine-a7a6413b45b63fa70a2fa5a6866ae9b86b86e2de.tar.bz2 |
Make a note to handle errors from the Redmine update request
-rwxr-xr-x | redprine | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -183,6 +183,11 @@ function update_redmine_status () { --request PUT \ --data "$json" \ --location "${REDMINE_BASE_URL}/issues/${issue_id}.json" + + # Output an error message if the request fails + # https://superuser.com/questions/272265/getting-curl-to-output-http-status-code/442395#442395 + # curl -s -o /dev/null -w "%{http_code}" http://www.example.org/ + # curl -s -o /dev/null -I -w "%{http_code}" http://www.example.org/ } function update_cache_with_new_pulls () { |