From 7799aa578726bd78bc71a4c94d0c4ea9f83f9fa5 Mon Sep 17 00:00:00 2001 From: Robert Gemmell Date: Wed, 27 Mar 2013 23:28:27 +0000 Subject: QPID-4666: fix exception messages during during 0-10 MessageSubscribe failures: include the queue name in exception message sent following ACL refusal, and fix typo in exception sent when an subscription already exists with the given destination. Based on patch by JAkub Scholz with some updates of my own. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1461895 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/qpid/server/transport/ServerSessionDelegate.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qpid/java') diff --git a/qpid/java/broker/src/main/java/org/apache/qpid/server/transport/ServerSessionDelegate.java b/qpid/java/broker/src/main/java/org/apache/qpid/server/transport/ServerSessionDelegate.java index d83bd1c4dc..7a6c0c42be 100644 --- a/qpid/java/broker/src/main/java/org/apache/qpid/server/transport/ServerSessionDelegate.java +++ b/qpid/java/broker/src/main/java/org/apache/qpid/server/transport/ServerSessionDelegate.java @@ -192,7 +192,7 @@ public class ServerSessionDelegate extends SessionDelegate if(((ServerSession)session).getSubscription(destination)!=null) { - exception(session, method, ExecutionErrorCode.NOT_ALLOWED, "Subscription already exists with destaination: '"+destination+"'"); + exception(session, method, ExecutionErrorCode.NOT_ALLOWED, "Subscription already exists with destination '"+destination+"'"); } else { @@ -275,7 +275,7 @@ public class ServerSessionDelegate extends SessionDelegate } catch (AMQException e) { - exception(session, method, e, "Cannot subscribe to '" + destination); + exception(session, method, e, "Cannot subscribe to queue '" + queueName + "' with destination '" + destination); } } } -- cgit v1.2.1