mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 21:14:33 +00:00
Show type name in btjson.cpp@processMap assert
This may help to solve #5381
This commit is contained in:
parent
ce22d031f6
commit
bb17d4a8dd
@ -775,7 +775,10 @@ void processMap(QVariantMap prevData, QVariantMap data, QVariantMap &syncData)
|
|||||||
syncData[key] = data[key];
|
syncData[key] = data[key];
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
Q_ASSERT(0);
|
Q_ASSERT_X(false, "processMap"
|
||||||
|
, QString("Unexpected type: %1")
|
||||||
|
.arg(QMetaType::typeName(static_cast<QMetaType::Type>(data[key].type())))
|
||||||
|
.toUtf8().constData());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user