mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 16:23:39 +02:00
add a QDebug for failed conversion in fromString
This commit is contained in:
parent
aeb04cf9c3
commit
fb7646b02b
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue