Author: aconway
Date: Fri Jan 12 09:52:28 2007
New Revision: 495661

URL: http://svn.apache.org/viewvc?view=rev&rev=495661
Log:
With thanks to Jim Meyering and Rafael Schloming: Fix incorrect error number
shown by python test failure in:
testDifferentDeclaredType (tests.exchange.MiscellaneousErrorsTests) ...

Modified:
    incubator/qpid/trunk/qpid/cpp/lib/broker/SessionHandlerImpl.cpp

Modified: incubator/qpid/trunk/qpid/cpp/lib/broker/SessionHandlerImpl.cpp
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/lib/broker/SessionHandlerImpl.cpp?view=diff&rev=495661&r1=495660&r2=495661
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/lib/broker/SessionHandlerImpl.cpp (original)
+++ incubator/qpid/trunk/qpid/cpp/lib/broker/SessionHandlerImpl.cpp Fri Jan 12 
09:52:28 2007
@@ -252,7 +252,7 @@
         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){


Reply via email to