diff --git a/src/ssm.rs b/src/ssm.rs index e767b14..30d55cd 100644 --- a/src/ssm.rs +++ b/src/ssm.rs @@ -64,8 +64,8 @@ async fn ssm_get_parameter( "error", true, Some(format!( - "Error calling ssm:GetParameter. Environment variable: {} Path: {} Error: {}", - name, path, error + "Error calling ssm:GetParameter. Environment variable: {} Path: {} Error: {:?}", + name, path, error.into_service_error().meta() )), ); } @@ -112,8 +112,8 @@ async fn ssm_get_parameters_by_path( "error", true, Some(format!( - "Error calling ssm:GetParametersByPath. Environment variable: {} Path: {} Error: {}", - name, path, error + "Error calling ssm:GetParametersByPath. Environment variable: {} Path: {} Error: {:?}", + name, path, error.into_service_error().meta() )), ); break;