diff options
| author | Robert Gemmell <robbie@apache.org> | 2012-02-13 21:59:54 +0000 |
|---|---|---|
| committer | Robert Gemmell <robbie@apache.org> | 2012-02-13 21:59:54 +0000 |
| commit | 443ab66fe8e7ebf0710a157a18220e6369133b7e (patch) | |
| tree | c631fb060e4663253cc743411b3c9d3b53959eed | |
| parent | 55917215bcf4a2a7eb5d2eceb53184c4febdb3be (diff) | |
| download | qpid-python-443ab66fe8e7ebf0710a157a18220e6369133b7e.tar.gz | |
QPID-3837: align the 0-10 exception message for an exchange redeclare attempt with the equivalent 0-9-1 message for clarity and consistency
I should test this first, but it is just a string so...<rolls dice>
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1243709 13f79535-47bb-0310-9956-ffa450edef68
| -rw-r--r-- | java/broker/src/main/java/org/apache/qpid/server/transport/ServerSessionDelegate.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/broker/src/main/java/org/apache/qpid/server/transport/ServerSessionDelegate.java b/java/broker/src/main/java/org/apache/qpid/server/transport/ServerSessionDelegate.java index 7e6caf7979..b61a562f39 100644 --- a/java/broker/src/main/java/org/apache/qpid/server/transport/ServerSessionDelegate.java +++ b/java/broker/src/main/java/org/apache/qpid/server/transport/ServerSessionDelegate.java @@ -465,7 +465,7 @@ public class ServerSessionDelegate extends SessionDelegate { if(!exchange.getTypeShortString().toString().equals(method.getType())) { - exception(session, method, ExecutionErrorCode.NOT_ALLOWED, "Cannot redeclare with a different exchange type"); + exception(session, method, ExecutionErrorCode.NOT_ALLOWED, "Attempt to redeclare exchange: " + exchangeName + " of type " + exchange.getType() + " to " + method.getType() +"."); } } @@ -515,7 +515,7 @@ public class ServerSessionDelegate extends SessionDelegate { if(!exchange.getTypeShortString().toString().equals(method.getType())) { - exception(session, method, ExecutionErrorCode.NOT_ALLOWED, "Cannot redeclare with a different exchange type"); + exception(session, method, ExecutionErrorCode.NOT_ALLOWED, "Attempt to redeclare exchange: " + exchangeName + " of type " + exchange.getType() + " to " + method.getType() +"."); } } |
