From ab514062d92edf8df9a9bb11e9a79ec511f54228 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 29 May 2018 09:02:07 +0200 Subject: [PATCH] transaction: Add remote name to some error messages This makes it more obvious where these errors come from --- common/flatpak-dir.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/flatpak-dir.c b/common/flatpak-dir.c index 543b7205..751aaba5 100644 --- a/common/flatpak-dir.c +++ b/common/flatpak-dir.c @@ -332,8 +332,8 @@ flatpak_remote_state_lookup_cache (FlatpakRemoteState *self, cache_v = g_variant_lookup_value (self->metadata, "xa.cache", NULL); if (cache_v == NULL) { - g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND, - _("No flatpak cache in remote summary")); + g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND, + _("No flatpak cache in remote '%s' summary"), self->remote_name); return FALSE; } @@ -342,7 +342,7 @@ flatpak_remote_state_lookup_cache (FlatpakRemoteState *self, if (!flatpak_variant_bsearch_str (cache, ref, &pos)) { g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND, - _("No entry for %s in remote summary flatpak cache "), ref); + _("No entry for %s in remote '%s' summary flatpak cache "), ref, self->remote_name); return FALSE; }