diff options
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/qpid/broker/amqp/Interconnects.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/broker/amqp/Interconnects.cpp b/qpid/cpp/src/qpid/broker/amqp/Interconnects.cpp index 8c1cb246ec..912b244bf9 100644 --- a/qpid/cpp/src/qpid/broker/amqp/Interconnects.cpp +++ b/qpid/cpp/src/qpid/broker/amqp/Interconnects.cpp @@ -54,7 +54,7 @@ bool Interconnects::createObject(Broker& broker, const std::string& type, const if (domain->isDurable()) broker.getStore().create(*domain); return true; } else { - return false; + throw qpid::Exception(QPID_MSG("A domain named " << name << " already exists")); } } else if (type == INCOMING_TYPE || type == OUTGOING_TYPE) { QPID_LOG(notice, "Creating interconnect " << name << ", " << properties); |
