Skip to content

Commit 5b1120f

Browse files
committed
Fail on API failures
1 parent e030f11 commit 5b1120f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Ensure cURL returns an error on a failed request
13+
1014
## [0.0.1] - 2020-04-17
1115

1216
### Added

hooks/command

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ main() {
55
local datadog_host="${BUILDKITE_PLUGIN_CREATE_DATADOG_EVENT_DATADOG_HOST:-https://api.datadoghq.com}"
66
local api_key="${BUILDKITE_PLUGIN_CREATE_DATADOG_EVENT_API_KEY}"
77

8-
curl -X POST \
8+
curl -fsS -X POST \
99
-H "Content-type: application/json" \
1010
-H "DD-API-KEY: ${api_key}" \
1111
-d "$(make_body)" \

0 commit comments

Comments
 (0)