Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7F165200C2F for ; Mon, 6 Mar 2017 21:19:15 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7D7C1160B81; Mon, 6 Mar 2017 20:19:15 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D122C160B76 for ; Mon, 6 Mar 2017 21:19:14 +0100 (CET) Received: (qmail 30656 invoked by uid 500); 6 Mar 2017 20:19:14 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 30636 invoked by uid 99); 6 Mar 2017 20:19:13 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Mar 2017 20:19:13 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id B7D99DFB7D; Mon, 6 Mar 2017 20:19:13 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: clebertsuconic@apache.org To: commits@activemq.apache.org Date: Mon, 06 Mar 2017 20:19:13 -0000 Message-Id: <2aae37e8399a436f899353dbd616f35b@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] activemq-artemis git commit: ARTEMIS-1017 reword error message archived-at: Mon, 06 Mar 2017 20:19:15 -0000 Repository: activemq-artemis Updated Branches: refs/heads/master ffb7c5654 -> 3566077b6 ARTEMIS-1017 reword error message reword error message when default destination for producer is not specified Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/84dfa24e Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/84dfa24e Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/84dfa24e Branch: refs/heads/master Commit: 84dfa24e38557093ee81b6f6551e029ec4d52a35 Parents: ffb7c56 Author: Jiri Danek Authored: Sat Mar 4 18:08:15 2017 +0100 Committer: Clebert Suconic Committed: Mon Mar 6 15:18:00 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/84dfa24e/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 e44cd8a..74dd39a 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"); } }