mirror of
https://github.com/overte-org/overte.git
synced 2025-06-20 13:01:06 +02:00
UserInputMapper: Make error an error.
This commit is contained in:
parent
43d56eed85
commit
8fcafa32d1
1 changed files with 3 additions and 3 deletions
|
@ -1195,9 +1195,9 @@ Mapping::Pointer UserInputMapper::parseMapping(const QString& json) {
|
||||||
QJsonDocument doc = QJsonDocument::fromJson(json.toUtf8(), &error);
|
QJsonDocument doc = QJsonDocument::fromJson(json.toUtf8(), &error);
|
||||||
// check validity of the document
|
// check validity of the document
|
||||||
if (doc.isNull()) {
|
if (doc.isNull()) {
|
||||||
qCDebug(controllers) << "Invalid JSON...\n";
|
qCCritical(controllers) << "Invalid JSON...\n";
|
||||||
qCDebug(controllers) << error.errorString();
|
qCCritical(controllers) << error.errorString();
|
||||||
qCDebug(controllers) << "JSON was:\n" << json << Qt::endl;
|
qCCritical(controllers) << "JSON was:\n" << json << Qt::endl;
|
||||||
return Mapping::Pointer();
|
return Mapping::Pointer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue