summaryrefslogtreecommitdiff
path: root/qpid/cpp/lib/broker/SessionHandlerImpl.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-01-12 17:52:28 +0000
committerAlan Conway <aconway@apache.org>2007-01-12 17:52:28 +0000
commitb652d5c3544e95c7ca511ae1beb9842777098fcf (patch)
treea73b6b5a4ada177e571c257358395cae492e977f /qpid/cpp/lib/broker/SessionHandlerImpl.cpp
parenta2249eadf8e74a033b72628c294bdcedb6f197df (diff)
downloadqpid-python-b652d5c3544e95c7ca511ae1beb9842777098fcf.tar.gz
With thanks to Jim Meyering and Rafael Schloming: Fix incorrect error number
shown by python test failure in: testDifferentDeclaredType (tests.exchange.MiscellaneousErrorsTests) ... git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@495661 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/lib/broker/SessionHandlerImpl.cpp')
-rw-r--r--qpid/cpp/lib/broker/SessionHandlerImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/lib/broker/SessionHandlerImpl.cpp b/qpid/cpp/lib/broker/SessionHandlerImpl.cpp
index 9131060b81..5ebc8c3709 100644
--- a/qpid/cpp/lib/broker/SessionHandlerImpl.cpp
+++ b/qpid/cpp/lib/broker/SessionHandlerImpl.cpp
@@ -252,7 +252,7 @@ void SessionHandlerImpl::ExchangeHandlerImpl::declare(u_int16_t channel, u_int16
try{
std::pair<Exchange::shared_ptr, bool> response = parent->exchanges->declare(exchange, type);
if(!response.second && response.first->getType() != type){
- throw ConnectionException(507, "Exchange already declared to be of type "
+ throw ConnectionException(530, "Exchange already declared to be of type "
+ response.first->getType() + ", requested " + type);
}
}catch(UnknownExchangeTypeException& e){