From d6de073a34a7781977e71f89dc9f9b66921993cb Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Fri, 12 Jan 2007 17:52:28 +0000 Subject: 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 --- cpp/lib/broker/SessionHandlerImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/lib') 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 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){ -- cgit v1.2.1