Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

fix: typo, .message doesn't exist #30

Merged
merged 1 commit into from
Jan 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backport.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ http_post() {
if [[ $(echo "${result}" |jq -r .http_code) != "2*" ]]
then
local message
message=$(echo "${result}"| jq -r -s 'add | (.http_code|tostring) + ": " + .message + " effective url: " + .url_effective')
message=$(echo "${result}"| jq -r -s 'add | (.http_code|tostring) + ", effective url: " + .url_effective')
echo "::error::Error in HTTP POST to ${url} of \`${json}\`: ${message}"
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion spec/backport_spec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ EOF
The output should equal '::debug::curl verbose output
::debug::curl verbose output (second line)
::debug::result={"http_code":401,"url_effective":"url"}
::error::Error in HTTP POST to url of '"\`"'{"json":"data"}'"\`"': 401: effective url: url'
::error::Error in HTTP POST to url of '"\`"'{"json":"data"}'"\`"': 401, effective url: url'
The status should equal 1
End
End
Expand Down