From b9a64ea34e7829e00951d2346c4ca063fdb232d0 Mon Sep 17 00:00:00 2001 From: Richard North Date: Mon, 30 Apr 2018 18:45:12 +0100 Subject: [PATCH] Change exception in case of failure --- .../java/org/testcontainers/utility/RegistryAuthLocator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/testcontainers/utility/RegistryAuthLocator.java b/core/src/main/java/org/testcontainers/utility/RegistryAuthLocator.java index b5b50b65f94..84ad8b9868e 100644 --- a/core/src/main/java/org/testcontainers/utility/RegistryAuthLocator.java +++ b/core/src/main/java/org/testcontainers/utility/RegistryAuthLocator.java @@ -80,7 +80,7 @@ private AuthConfig authConfigUsingCredentialsStoreOrHelper(String hostName, Json } else if (!credsStoreName.isMissingNode()) { return runCredentialProvider(hostName, credsStoreName.asText()); } else { - throw new UnsupportedOperationException(); + throw new IllegalStateException("Unsupported Docker config auths settings!"); } }