diff options
| author | Gordon Sim <gsim@apache.org> | 2013-11-01 18:31:32 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2013-11-01 18:31:32 +0000 |
| commit | f2c96f5b69e6045f16b88bc4ac506723c7f9bac7 (patch) | |
| tree | 707b5e5bfea55bc3293b9a01127a53ee98779f54 /qpid/cpp/src | |
| parent | ea04b5b526af50054159fe5c7194907c6e7f1032 (diff) | |
| download | qpid-python-f2c96f5b69e6045f16b88bc4ac506723c7f9bac7.tar.gz | |
NO-JIRA: prevent scary error message when not actually appropriate
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1538016 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/qpid/amqp/DataBuilder.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/amqp/DataBuilder.cpp b/qpid/cpp/src/qpid/amqp/DataBuilder.cpp index 91c9393457..aeb9b9c612 100644 --- a/qpid/cpp/src/qpid/amqp/DataBuilder.cpp +++ b/qpid/cpp/src/qpid/amqp/DataBuilder.cpp @@ -142,7 +142,9 @@ bool DataBuilder::nest(const qpid::types::Variant& n) { switch (nested.top()->getType()) { case qpid::types::VAR_MAP: - QPID_LOG(error, QPID_MSG("Expecting map key; got " << n)); + if (nested.size() > 1 || nested.top()->asMap().size() > 0) { + QPID_LOG(error, QPID_MSG("Expecting map key; got " << n << " " << *(nested.top()))); + } break; case qpid::types::VAR_LIST: nested.top()->asList().push_back(n); |
