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 /lib | |
parent | 2ef6d9d5d999a5e3a6b970c8a4a68b52daf987f4 (diff) | |
download | xdg-app-712fc9fc081a5cbaf150624b0d5ce15b7ea18849.tar.gz |
Use the installed/not-installed errors more consequently
Diffstat (limited to 'lib')
-rw-r--r-- | lib/flatpak-installation.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/flatpak-installation.c b/lib/flatpak-installation.c index 16f8a7f..c9e7201 100644 --- a/lib/flatpak-installation.c +++ b/lib/flatpak-installation.c @@ -390,7 +390,7 @@ flatpak_installation_get_installed_ref (FlatpakInstallation *self, ref, NULL, cancellable); if (deploy == NULL) { - g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND, + g_set_error (error, FLATPAK_ERROR, FLATPAK_ERROR_NOT_INSTALLED, "Ref %s no installed", ref); return NULL; } @@ -429,7 +429,7 @@ flatpak_installation_get_current_installed_app (FlatpakInstallation *self, if (deploy == NULL) { - g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND, + g_set_error (error, FLATPAK_ERROR, FLATPAK_ERROR_NOT_INSTALLED, "App %s no installed", name); return NULL; } |