summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2013-11-01 18:31:32 +0000
committerGordon Sim <gsim@apache.org>2013-11-01 18:31:32 +0000
commit68793e8a4d21f51c53d50648dc26e930537ab3ab (patch)
tree0fe53d734d7a0f1fb6b11829d5dfe29f3165530b /cpp/src
parent0e80c9b2a1bb1f09cd299ae498bd29e46014f211 (diff)
downloadqpid-python-68793e8a4d21f51c53d50648dc26e930537ab3ab.tar.gz
NO-JIRA: prevent scary error message when not actually appropriate
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1538016 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/amqp/DataBuilder.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/qpid/amqp/DataBuilder.cpp b/cpp/src/qpid/amqp/DataBuilder.cpp
index 91c9393457..aeb9b9c612 100644
--- a/cpp/src/qpid/amqp/DataBuilder.cpp
+++ b/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);