diff options
author | Alan Conway <aconway@apache.org> | 2007-01-12 17:52:28 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2007-01-12 17:52:28 +0000 |
commit | d6de073a34a7781977e71f89dc9f9b66921993cb (patch) | |
tree | fffaebc57e5e1a01c9b2c7b2abb956b84a53ff28 | |
parent | 337033877035b9029a000903454200990a4a8b7c (diff) | |
download | qpid-python-d6de073a34a7781977e71f89dc9f9b66921993cb.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/qpid@495661 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | cpp/lib/broker/SessionHandlerImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/lib/broker/SessionHandlerImpl.cpp b/cpp/lib/broker/SessionHandlerImpl.cpp index 9131060b81..5ebc8c3709 100644 --- a/cpp/lib/broker/SessionHandlerImpl.cpp +++ b/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){ |