mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-24 07:55:35 +08:00
slight improvement to error reporting in complexQtTypeFromDbusArgument
This commit is contained in:
@@ -357,7 +357,10 @@ QVariant BlackMisc::complexQtTypeFromDbusArgument(const QDBusArgument &argument,
|
||||
return QVariant::fromValue(time);
|
||||
}
|
||||
default:
|
||||
qFatal("Type cannot be resolved");
|
||||
{
|
||||
const char *name = QMetaType::typeName(type);
|
||||
qFatal("Type cannot be resolved: %s (%d)", name ? name : "", type);
|
||||
}
|
||||
}
|
||||
return QVariant(); // suppress compiler warning
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user