From 04102570427c0a32784b70c7cc932d0e80a4c29e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20K=C3=B6rber?= Date: Sun, 13 Dec 2015 19:20:14 +0100 Subject: [PATCH] Throw an AcmeException if the acme URI cannot be resolved --- .../src/main/java/org/shredzone/acme4j/AcmeClientFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acme4j-client/src/main/java/org/shredzone/acme4j/AcmeClientFactory.java b/acme4j-client/src/main/java/org/shredzone/acme4j/AcmeClientFactory.java index 68f36d69..0002ae48 100644 --- a/acme4j-client/src/main/java/org/shredzone/acme4j/AcmeClientFactory.java +++ b/acme4j-client/src/main/java/org/shredzone/acme4j/AcmeClientFactory.java @@ -74,7 +74,7 @@ public final class AcmeClientFactory { if (candidates.isEmpty()) { throw new AcmeException("No ACME provider found for " + serverUri); } else if (candidates.size() > 1) { - throw new IllegalArgumentException("There are " + candidates.size() + " " + throw new AcmeException("There are " + candidates.size() + " " + AcmeClientProvider.class.getSimpleName() + " accepting " + serverUri + ". Please check your classpath."); } else {