You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2013/11/01 19:31:32 UTC

svn commit: r1538016 - /qpid/trunk/qpid/cpp/src/qpid/amqp/DataBuilder.cpp

Author: gsim
Date: Fri Nov  1 18:31:32 2013
New Revision: 1538016

URL: http://svn.apache.org/r1538016
Log:
NO-JIRA: prevent scary error message when not actually appropriate

Modified:
    qpid/trunk/qpid/cpp/src/qpid/amqp/DataBuilder.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/amqp/DataBuilder.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/amqp/DataBuilder.cpp?rev=1538016&r1=1538015&r2=1538016&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/amqp/DataBuilder.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/amqp/DataBuilder.cpp Fri Nov  1 18:31:32 2013
@@ -142,7 +142,9 @@ bool DataBuilder::nest(const qpid::types
 {
     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);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org