summaryrefslogtreecommitdiff
path: root/cpp/lib/broker/SessionHandlerImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/lib/broker/SessionHandlerImpl.cpp')
-rw-r--r--cpp/lib/broker/SessionHandlerImpl.cpp2
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){