This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new e44fd19 Camel-Nats: Better error message in case of missing servers
e44fd19 is described below
commit e44fd19265463333f890b493e1fcae8535519468
Author: Andrea Cosentino <[email protected]>
AuthorDate: Fri Sep 17 19:07:01 2021 +0200
Camel-Nats: Better error message in case of missing servers
---
.../main/java/org/apache/camel/component/nats/NatsConfiguration.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/components/camel-nats/src/main/java/org/apache/camel/component/nats/NatsConfiguration.java
b/components/camel-nats/src/main/java/org/apache/camel/component/nats/NatsConfiguration.java
index 6eea512..1a1f898 100644
---
a/components/camel-nats/src/main/java/org/apache/camel/component/nats/NatsConfiguration.java
+++
b/components/camel-nats/src/main/java/org/apache/camel/component/nats/NatsConfiguration.java
@@ -388,7 +388,7 @@ public class NatsConfiguration {
String prefix = "nats://";
String srvspec = getServers();
- ObjectHelper.notNull(srvspec, "No servers configured");
+ ObjectHelper.notNull(srvspec, "Servers");
String[] pieces = srvspec.split(",");
for (int i = 0; i < pieces.length; i++) {