Skip to content

Commit 2bf0385

Browse files
authored
Adjust error message when bodies don't match in aws-smithy-protocol-test (#3736)
The left parameter is the expected one, see <https://github.com/smithy-lang/smithy-rs/blob/dc1ffb8a0d2cf9ba413d7c62097797863b12db07/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._
1 parent e3646b1 commit 2bf0385

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rust-runtime/aws-smithy-protocol-test/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aws-smithy-protocol-test"
3-
version = "0.60.7"
3+
version = "0.60.8"
44
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
55
description = "A collection of library functions to validate HTTP requests against Smithy protocol tests."
66
edition = "2021"

rust-runtime/aws-smithy-protocol-test/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub enum ProtocolTestFailure {
8484
#[error("Header `{forbidden}` was forbidden but found: `{found}`")]
8585
ForbiddenHeader { forbidden: String, found: String },
8686
#[error(
87-
"body did not match. left=actual, right=expected\n{comparison:?} \n == hint:\n{hint}."
87+
"body did not match. left=expected, right=actual\n{comparison:?} \n == hint:\n{hint}."
8888
)]
8989
BodyDidNotMatch {
9090
// the comparison includes colorized escapes. PrettyString ensures that even during

0 commit comments

Comments
 (0)