[gnome-online-accounts/wip/rishi/templates: 1/7] daemon: Use GLib API to match the GError domain and code
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/wip/rishi/templates: 1/7] daemon: Use GLib API to match the GError domain and code
- Date: Thu, 1 Sep 2016 17:32:39 +0000 (UTC)
commit 242d5816a75e2ecaa387ae0f9d21628a4df7e95c
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Sep 1 19:30:52 2016 +0200
daemon: Use GLib API to match the GError domain and code
src/daemon/goadaemon.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/daemon/goadaemon.c b/src/daemon/goadaemon.c
index a01fc63..01549c7 100644
--- a/src/daemon/goadaemon.c
+++ b/src/daemon/goadaemon.c
@@ -468,7 +468,7 @@ add_config_file (GoaDaemon *self,
G_KEY_FILE_NONE,
&error))
{
- if (!(error->domain == G_FILE_ERROR && error->code == G_FILE_ERROR_NOENT))
+ if (!g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT))
{
g_warning ("Error loading %s: %s (%s, %d)",
path,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]