Commit 60fb8bfc authored by Andrés G. Aragoneses's avatar Andrés G. Aragoneses

Dap.Mtp: change a Log.Error() to be a warning

This happens too often to be considered an error/assertion.
At the same time I convert it to a warning, I'm changing the
catch to be more specific (LibMtpException instead of Exception).
parent 666363b0
......@@ -49,7 +49,6 @@ namespace Banshee.Dap.Mtp
public class MtpSource : DapSource
protected override object InternalLock {
get { return mtp_device; }
......@@ -146,8 +145,8 @@ namespace Banshee.Dap.Mtp
AddDapProperty (Catalog.GetString ("Version"), mtp_device.Version);
try {
AddDapProperty (Catalog.GetString ("Battery level"), String.Format ("{0:0%}", mtp_device.BatteryLevel/100.0));
} catch (Exception e) {
Log.Error ("Unable to get battery level from MTP device", e);
} catch (LibMtpException e) {
Log.Warning ("Unable to get battery level from MTP device", e);
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