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

Commit

Permalink
fix: typo, .message doesn't exist
Browse files Browse the repository at this point in the history
zregvart committed Jan 4, 2021
1 parent 314c5ab commit a5052c1
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backport.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion spec/backport_spec.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a5052c1

Please sign in to comment.