-
Hi! I have trouble retrieving the field that contains the error message let instances = match ec2_client.describe_instances().send().await {
Ok(v) => v,
Err(e) => {
println!("error {:?}", e);
match &e {
aws_smithy_runtime_api::client::result::SdkError::DispatchFailure(de) => {
}
}
}
|
Beta Was this translation helpful? Give feedback.
Answered by
jdisanti
Feb 26, 2024
Replies: 1 comment 3 replies
-
You can use the |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
jmklix
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the
ProvideErrorMetadata
trait to directly access the error code and message.