Repository: activemq-artemis Updated Branches: refs/heads/1.x a203e47c1 -> f6ea3f97b
ARTEMIS-1017 reword error message reword error message when default destination for producer is not specified (cherry picked from commit 84dfa24e38557093ee81b6f6551e029ec4d52a35) Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/f6ea3f97 Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/f6ea3f97 Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/f6ea3f97 Branch: refs/heads/1.x Commit: f6ea3f97b231a92dc992d3665043ca8d1c3868f5 Parents: a203e47 Author: Jiri Danek <jda...@redhat.com> Authored: Sat Mar 4 18:08:15 2017 +0100 Committer: Clebert Suconic <clebertsuco...@apache.org> Committed: Mon Mar 6 15:19:26 2017 -0500 ---------------------------------------------------------------------- .../activemq/artemis/jms/client/ActiveMQMessageProducer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f6ea3f97/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessageProducer.java ---------------------------------------------------------------------- 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 270cc9f..8e3f56b 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 @@ -334,7 +334,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"); } }