aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 () {