aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-04-18 22:10:11 +0200
committerTeddy Wing2018-04-18 22:10:11 +0200
commita7a6413b45b63fa70a2fa5a6866ae9b86b86e2de (patch)
treeb687662d84ee3de15ad5d3fc732f66d0e5670eca
parente0ea6a97407746dc43aca20d6f5608873c162821 (diff)
downloadredprine-a7a6413b45b63fa70a2fa5a6866ae9b86b86e2de.tar.bz2
Make a note to handle errors from the Redmine update request
-rwxr-xr-xredprine5
1 files changed, 5 insertions, 0 deletions
diff --git a/redprine b/redprine
index aff2316..55b08cd 100755
--- a/redprine
+++ b/redprine
@@ -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 () {