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:
david-perez 2024-07-04 12:45:48 +02:00 committed by GitHub
parent e3646b118b
commit 2bf03857f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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