From fb7646b02b6a69832d34a72b7fbf4d23ed3415d5 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Mon, 4 May 2015 10:32:49 -0700 Subject: [PATCH] add a QDebug for failed conversion in fromString --- libraries/networking/src/JSONBreakableMarshal.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/networking/src/JSONBreakableMarshal.cpp b/libraries/networking/src/JSONBreakableMarshal.cpp index 27b3248c8d..768d4e32b6 100644 --- a/libraries/networking/src/JSONBreakableMarshal.cpp +++ b/libraries/networking/src/JSONBreakableMarshal.cpp @@ -111,7 +111,7 @@ QVariant JSONBreakableMarshal::fromString(const QString& marshalValue) { } else if (marshalValue == JSON_UNDEFINED_AS_STRING) { result = JSON_UNDEFINED_AS_STRING; } else if (marshalValue == JSON_UNKNOWN_AS_STRING) { - // we weren't able to marshal this value at the other end, set it as our unknown string" + // we weren't able to marshal this value at the other end, set it as our unknown string result = JSON_UNKNOWN_AS_STRING; } else { // this might be a double, see if it converts @@ -131,6 +131,7 @@ QVariant JSONBreakableMarshal::fromString(const QString& marshalValue) { result = stringRegex.cap(1); } else { // we failed to convert the value to anything, set the result to our unknown value + qDebug() << "Unrecognized output from JSONBreakableMarshal - could not convert" << marshalValue << "to QVariant."; result = JSON_UNKNOWN_AS_STRING; } }