diff options
author | Alexander Larsson <alexl@redhat.com> | 2016-05-12 16:48:10 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2016-05-12 17:17:27 +0200 |
commit | 712fc9fc081a5cbaf150624b0d5ce15b7ea18849 (patch) | |
tree | b520731b13bb520e56ae7d3e65f53114a4c12476 /common | |
parent | 2ef6d9d5d999a5e3a6b970c8a4a68b52daf987f4 (diff) | |
download | xdg-app-712fc9fc081a5cbaf150624b0d5ce15b7ea18849.tar.gz |
Use the installed/not-installed errors more consequently
Diffstat (limited to 'common')
-rw-r--r-- | common/flatpak-dir.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/flatpak-dir.c b/common/flatpak-dir.c index 7dbd93c..a50869c 100644 --- a/common/flatpak-dir.c +++ b/common/flatpak-dir.c @@ -720,7 +720,7 @@ flatpak_dir_get_deploy_data (FlatpakDir *self, deploy_dir = flatpak_dir_get_if_deployed (self, ref, NULL, cancellable); if (deploy_dir == NULL) { - flatpak_fail (error, "%s is not installed", ref); + g_set_error (error, FLATPAK_ERROR, FLATPAK_ERROR_NOT_INSTALLED, "%s not installed", ref); return NULL; } @@ -755,7 +755,7 @@ flatpak_dir_get_origin (FlatpakDir *self, cancellable, error); if (deploy_data == NULL) { - flatpak_fail (error, "%s is not installed", ref); + g_set_error (error, FLATPAK_ERROR, FLATPAK_ERROR_NOT_INSTALLED, "%s not installed", ref); return NULL; } @@ -776,7 +776,7 @@ flatpak_dir_get_subpaths (FlatpakDir *self, cancellable, error); if (deploy_data == NULL) { - flatpak_fail (error, "%s is not installed", ref); + g_set_error (error, FLATPAK_ERROR, FLATPAK_ERROR_NOT_INSTALLED, "%s not installed", ref); return NULL; } @@ -3698,7 +3698,7 @@ flatpak_dir_find_installed_ref (FlatpakDir *self, } } - g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND, + g_set_error (error, FLATPAK_ERROR, FLATPAK_ERROR_NOT_INSTALLED, "%s %s not installed", name, opt_branch ? opt_branch : "master"); return NULL; } |