Unverified Commit 7477cfbc authored by John DiSanti's avatar John DiSanti Committed by GitHub
Browse files

Add error refactor changelog entries and re-export `DisplayErrorContext` (#1951)

* Re-export `DisplayErrorContext`
* Update changelog
parent 653e4cd7
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -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"
+3 −1
Original line number Diff line number Diff line
@@ -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),