mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-10 05:55:33 +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);
|
return QVariant::fromValue(time);
|
||||||
}
|
}
|
||||||
default:
|
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
|
return QVariant(); // suppress compiler warning
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user