mirror of https://github.com/smithy-lang/smithy-rs
Adjust error message when bodies don't match in `aws-smithy-protocol-test` (#3736)
The left parameter is the expected one, see
<dc1ffb8a0d/rust-runtime/aws-smithy-protocol-test/src/lib.rs (L389-L394)
>.
----
_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
This commit is contained in:
parent
e3646b118b
commit
2bf03857f0
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "aws-smithy-protocol-test"
|
||||
version = "0.60.7"
|
||||
version = "0.60.8"
|
||||
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
|
||||
description = "A collection of library functions to validate HTTP requests against Smithy protocol tests."
|
||||
edition = "2021"
|
||||
|
|
|
@ -84,7 +84,7 @@ pub enum ProtocolTestFailure {
|
|||
#[error("Header `{forbidden}` was forbidden but found: `{found}`")]
|
||||
ForbiddenHeader { forbidden: String, found: String },
|
||||
#[error(
|
||||
"body did not match. left=actual, right=expected\n{comparison:?} \n == hint:\n{hint}."
|
||||
"body did not match. left=expected, right=actual\n{comparison:?} \n == hint:\n{hint}."
|
||||
)]
|
||||
BodyDidNotMatch {
|
||||
// the comparison includes colorized escapes. PrettyString ensures that even during
|
||||
|
|
Loading…
Reference in New Issue