qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r1538016 - /qpid/trunk/qpid/cpp/src/qpid/amqp/DataBuilder.cpp
Date Fri, 01 Nov 2013 18:31:32 GMT
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


Mime
View raw message