Commit 0a6e31d8 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Devicemanger: Improve error reporting



Improve error reporting when loading a device failed.

Change-Id: I6fdb8b77db10d03651d087aff9417a31ecdb0fdb
Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
parent 783c53fb
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment