Skip to content

Commit a8711bc

Browse files
committed
Improved exception message
1 parent 040b4ae commit a8711bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/auth/src/main/java/software/amazon/awssdk/auth/credentials/ContainerCredentialsProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ private URI createGenericContainerUrl() {
213213
String envVarName = SdkSystemSetting.AWS_CONTAINER_CREDENTIALS_FULL_URI.environmentVariable();
214214
throw SdkClientException.builder()
215215
.message(String.format("The full URI (%s) contained within environment variable " +
216-
"%s has an invalid host. Host should resolve to a loopback" +
217-
" address.",
216+
"%s has an invalid host. Host should resolve to a loopback " +
217+
"address or have the full URI be HTTPS.",
218218
uri, envVarName))
219219
.build();
220220
}

0 commit comments

Comments
 (0)