You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by rc...@apache.org on 2024/01/24 08:08:13 UTC

(james-project) 05/06: JAMES-3897 Enhance some error messages

This is an automated email from the ASF dual-hosted git repository.

rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 36d2c6d47ac14322961079134d393a2ae5b239c5
Author: Quan Tran <hq...@linagora.com>
AuthorDate: Mon Jan 22 15:32:42 2024 +0700

    JAMES-3897 Enhance some error messages
---
 .../org/apache/james/crowdsec/client/CrowdsecClientConfiguration.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/third-party/crowdsec/src/main/java/org/apache/james/crowdsec/client/CrowdsecClientConfiguration.java b/third-party/crowdsec/src/main/java/org/apache/james/crowdsec/client/CrowdsecClientConfiguration.java
index e548be7282..4302e13203 100644
--- a/third-party/crowdsec/src/main/java/org/apache/james/crowdsec/client/CrowdsecClientConfiguration.java
+++ b/third-party/crowdsec/src/main/java/org/apache/james/crowdsec/client/CrowdsecClientConfiguration.java
@@ -42,7 +42,8 @@ public class CrowdsecClientConfiguration {
             .orElseThrow(() -> new IllegalArgumentException("Crowdsec's url is invalid."));
 
         String apiKey = Optional.of(config.getString("apiKey"))
-            .orElseThrow(() -> new IllegalArgumentException("Missing apiKey!"));
+            .orElseThrow(() -> new IllegalArgumentException("Missing CrowdSec apiKey!"));
+
         return new CrowdsecClientConfiguration(crowdsecUrl, apiKey);
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org