[banshee] Importing: when erroring, use file paths, not URIs
- From: AndrÃs Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] Importing: when erroring, use file paths, not URIs
- Date: Sun, 27 Nov 2011 04:16:49 +0000 (UTC)
commit c30f672d6d51a0a5b18e31f13f01b5212423efb7
Author: Andres G. Aragoneses <knocte gmail com>
Date: Sun Nov 27 04:16:29 2011 +0000
Importing: when erroring, use file paths, not URIs
When an exception is thrown from down the
importing classes in the stack, the path
of the file that caused it was bubbled up
in Uri form. This fixes it so the user can
see a pretty file path that can understand.
.../DatabaseImportManager.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseImportManager.cs b/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseImportManager.cs
index 620015d..73fa668 100644
--- a/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseImportManager.cs
+++ b/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseImportManager.cs
@@ -137,7 +137,7 @@ namespace Banshee.Collection.Database
OnImportResult (track, path, null);
} catch (Exception e) {
- LogError (path, e);
+ LogError (SafeUri.UriToFilename (path), e);
UpdateProgress (null);
OnImportResult (null, path, e);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]