slight improvement to error reporting in complexQtTypeFromDbusArgument

This commit is contained in:
Mathew Sutcliffe
2014-05-16 19:27:04 +01:00
parent 9e3c8ff174
commit b03a9b11a4

View File

@@ -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
}