diff options
author | Alexander Larsson <alexl@redhat.com> | 2015-08-27 10:40:58 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2015-08-27 10:40:58 +0200 |
commit | 42012a7d5a41321c4b7a40ce532b36b20b20b21b (patch) | |
tree | 395f18aa52788a60e995c5279bc3c08ea0c5b38a /document-portal/xdp-fuse.c | |
parent | b6355e1acb4ec5edd8bdc194770c46140e0c6aa0 (diff) | |
download | xdg-app-42012a7d5a41321c4b7a40ce532b36b20b20b21b.tar.gz |
Drop the xdp specific errors and use the xdg-app ones
Diffstat (limited to 'document-portal/xdp-fuse.c')
-rw-r--r-- | document-portal/xdp-fuse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/document-portal/xdp-fuse.c b/document-portal/xdp-fuse.c index 6e8a403..dd3c920 100644 --- a/document-portal/xdp-fuse.c +++ b/document-portal/xdp-fuse.c @@ -14,7 +14,7 @@ #include <glib/gprintf.h> #include <gio/gio.h> -#include "xdp-error.h" +#include "xdg-app-error.h" #include "xdp-fuse.h" #include "xdp-util.h" @@ -1738,7 +1738,7 @@ xdp_fuse_init (GError **error) mount_path = g_build_filename (g_get_user_runtime_dir(), "doc", NULL); if (g_mkdir_with_parents (mount_path, 0700)) { - g_set_error (error, XDP_ERROR, XDP_ERROR_FAILED, + g_set_error (error, XDG_APP_ERROR, XDG_APP_ERROR_FAILED, "Unable to create dir %s\n", mount_path); return FALSE; } @@ -1746,7 +1746,7 @@ xdp_fuse_init (GError **error) main_ch = ch = fuse_mount (mount_path, &args); if (ch == NULL) { - g_set_error (error, XDP_ERROR, XDP_ERROR_FAILED, "Can't mount fuse fs"); + g_set_error (error, XDG_APP_ERROR, XDG_APP_ERROR_FAILED, "Can't mount fuse fs"); return FALSE; } @@ -1754,7 +1754,7 @@ xdp_fuse_init (GError **error) sizeof (xdp_fuse_oper), NULL); if (session == NULL) { - g_set_error (error, XDP_ERROR, XDP_ERROR_FAILED, + g_set_error (error, XDG_APP_ERROR, XDG_APP_ERROR_FAILED, "Can't create fuse session"); return FALSE; } |