From 84dfa24e38557093ee81b6f6551e029ec4d52a35 Mon Sep 17 00:00:00 2001 From: Jiri Danek Date: Sat, 4 Mar 2017 18:08:15 +0100 Subject: [PATCH] ARTEMIS-1017 reword error message reword error message when default destination for producer is not specified --- .../activemq/artemis/jms/client/ActiveMQMessageProducer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessageProducer.java b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessageProducer.java index e44cd8a886..74dd39acc0 100644 --- a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessageProducer.java +++ b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessageProducer.java @@ -336,7 +336,7 @@ public class ActiveMQMessageProducer implements MessageProducer, QueueSender, To */ private void checkDefaultDestination() { if (defaultDestination == null) { - throw new UnsupportedOperationException("Cannot specify destination if producer has a default destination"); + throw new UnsupportedOperationException("Producer does not have a default destination"); } }