[folks] Warn on key file parse errors, rather than explode
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Warn on key file parse errors, rather than explode
- Date: Fri, 10 Sep 2010 16:13:47 +0000 (UTC)
commit 4148a6a1474791ea0add1d47f913d1f3aec7e733
Author: Philip Withnall <philip withnall collabora co uk>
Date: Wed Sep 8 11:10:49 2010 +0100
Warn on key file parse errors, rather than explode
Contrary to popular belief, it is possible to encounter errors when parsing
key files. In this case, the key-file backend shouldn't explode without a
helpful error message. Helps: bgo#628930
backends/key-file/kf-persona.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/backends/key-file/kf-persona.vala b/backends/key-file/kf-persona.vala
index 66432ab..372451c 100644
--- a/backends/key-file/kf-persona.vala
+++ b/backends/key-file/kf-persona.vala
@@ -174,7 +174,7 @@ public class Folks.Backends.Kf.Persona : Folks.Persona,
* get any other exceptions, since we're iterating through a list of
* keys we've just retrieved. */
if (!(e is KeyFileError.GROUP_NOT_FOUND))
- GLib.assert_not_reached ();
+ warning ("Couldn't load data from key file: %s", e.message);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]