forked from qt-creator/qt-creator
Devicemanger: Improve error reporting
Improve error reporting when loading a device failed. Change-Id: I6fdb8b77db10d03651d087aff9417a31ecdb0fdb Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -328,8 +328,9 @@ const IDeviceFactory *DeviceManager::restoreFactory(const QVariantMap &map)
|
||||
if (factory->canRestore(map))
|
||||
return factory;
|
||||
}
|
||||
qWarning("Warning: No factory found for device of type '%s'.",
|
||||
qPrintable(IDevice::typeFromMap(map).toString()));
|
||||
qWarning("Warning: No factory found for device '%s' of type '%s'.",
|
||||
qPrintable(IDevice::idFromMap(map).toString()),
|
||||
qPrintable(IDevice::typeFromMap(map).toString()));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user