Skip to content

Commit

Permalink
Add error refactor changelog entries and re-export `DisplayErrorConte…
Browse files Browse the repository at this point in the history
…xt` (#1951)

* Re-export `DisplayErrorContext`
* Update changelog
  • Loading branch information
jdisanti authored Nov 12, 2022
1 parent 653e4cd commit 7477cfb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions CHANGELOG.next.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,16 @@ message = "Upgrade to Smithy 1.26.2"
references = ["smithy-rs#1972"]
meta = { "breaking" = false, "tada" = false, "bug" = false }
author = "rcoh"

[[smithy-rs]]
message = "Several breaking changes have been made to errors. See [the upgrade guide](https://github.com/awslabs/smithy-rs/issues/1950) for more information."
references = ["smithy-rs#1926", "smithy-rs#1819"]
meta = { "breaking" = true, "tada" = false, "bug" = false, "target" = "client" }
author = "jdisanti"

[[aws-sdk-rust]]
message = "Several breaking changes have been made to errors. See [the upgrade guide](https://github.com/awslabs/aws-sdk-rust/issues/657) for more information."
references = ["smithy-rs#1926", "smithy-rs#1819"]
meta = { "breaking" = true, "tada" = false, "bug" = false }
author = "jdisanti"

Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ internal fun pubUseTypes(runtimeConfig: RuntimeConfig, model: Model): List<Runti
listOf(
PubUseType(RuntimeType.Blob(runtimeConfig), ::hasBlobs),
PubUseType(RuntimeType.DateTime(runtimeConfig), ::hasDateTimes),
) + CargoDependency.SmithyHttp(runtimeConfig).asType().let { http ->
) + CargoDependency.SmithyTypes(runtimeConfig).asType().let { types ->
listOf(PubUseType(types.member("error::display::DisplayErrorContext")) { true })
} + CargoDependency.SmithyHttp(runtimeConfig).asType().let { http ->
listOf(
PubUseType(http.member("result::SdkError")) { true },
PubUseType(http.member("byte_stream::ByteStream"), ::hasStreamingOperations),
Expand Down

0 comments on commit 7477cfb

Please sign in to comment.