[tomboy] Print what we failed to parse
- From: Jared L Jennings <jjennings src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tomboy] Print what we failed to parse
- Date: Fri, 15 Nov 2013 16:48:12 +0000 (UTC)
commit 1915bba713be8489c3a79843d705257b86bc1235
Author: Guido Günther <agx sigxcpu org>
Date: Tue Nov 12 17:17:29 2013 +0100
Print what we failed to parse
Instead of just printing
Unparsable last-sync-date element in /home/foo/.config/tomboy/manifest.xml
print which value failed to passe like
Unparsable last-sync-date '0001-01-01T00:00:00.0000000+01:00' in /home/foo/.config/tomboy/manifest.xml
Signed-off-by: Jared Jennings <jared jaredjennings org>
Tomboy/Synchronization/TomboySyncClient.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/Tomboy/Synchronization/TomboySyncClient.cs b/Tomboy/Synchronization/TomboySyncClient.cs
index bf9cb21..44abb7f 100644
--- a/Tomboy/Synchronization/TomboySyncClient.cs
+++ b/Tomboy/Synchronization/TomboySyncClient.cs
@@ -116,7 +116,7 @@ namespace Tomboy.Sync
try {
lastSyncRev = int.Parse (node.InnerText);
} catch {
- Logger.Error ("Unparsable last-sync-rev element in " + manifestPath);
+ Logger.Error ("Unparsable last-sync-rev '" + node.InnerText + "' in "
+ manifestPath);
}
}
@@ -127,7 +127,7 @@ namespace Tomboy.Sync
try {
lastSyncDate = DateTime.Parse (node.InnerText);
} catch {
- Logger.Error ("Unparsable last-sync-date element in " + manifestPath);
+ Logger.Error ("Unparsable last-sync-date '" + node.InnerText + "' in
" + manifestPath);
}
}
} finally {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]