Skip to content

Commit

Permalink
fix http result errors by wrapping the upstream error, allowing for i…
Browse files Browse the repository at this point in the history
…sNack

Signed-off-by: Scott Nichols <n3wscott@chainguard.dev>
  • Loading branch information
n3wscott committed Mar 23, 2022
1 parent 608798c commit 0b3b53d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/protocol/http/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func (p *Protocol) Send(ctx context.Context, m binding.Message, transformers ...
buf := new(bytes.Buffer)
buf.ReadFrom(message.BodyReader)
errorStr := buf.String()
err = NewResult(res.StatusCode, "%s", errorStr)
err = NewResult(res.StatusCode, "%w: %s", err, errorStr)
}
}
}
Expand Down

0 comments on commit 0b3b53d

Please sign in to comment.