Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
Co-authored-by: Zelda Hessler <zhessler@amazon.com>
  • Loading branch information
jdisanti and Zelda Hessler authored Nov 15, 2022
1 parent 5c2040e commit 69b5c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/rust-runtime/aws-config/src/imds/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ impl Client {
path: &str,
) -> Result<Operation<ImdsGetResponseHandler, ImdsResponseRetryClassifier>, ImdsError> {
let mut base_uri: Uri = path.parse().map_err(|_| {
ImdsError::unexpected("IMDS path was not a valid URI. Hint: does it begin with `/`?")
ImdsError::unexpected("IMDS path was not a valid URI. Hint: valid URIs begin with `/`")
})?;
self.inner.endpoint.set_endpoint(&mut base_uri, None);
let request = http::Request::builder()
Expand Down

0 comments on commit 69b5c94

Please sign in to comment.