mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-13 20:52:39 -04:00
Add locations to some error messages
When a file is not found, mention where we looked for it. This provides useful context for understanding the error.
This commit is contained in:
@@ -1553,8 +1553,10 @@ builder_manifest_cleanup (BuilderManifest *self,
|
||||
|
||||
if (!found_icon)
|
||||
{
|
||||
g_autofree char *icon_path = g_file_get_path (icons_dir);
|
||||
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
|
||||
"icon %s not found", self->rename_icon);
|
||||
"icon %s not found below %s",
|
||||
self->rename_icon, icon_path);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
@@ -1575,7 +1577,8 @@ builder_manifest_cleanup (BuilderManifest *self,
|
||||
if (!g_file_load_contents (desktop, NULL,
|
||||
&desktop_contents, &desktop_size, NULL, error))
|
||||
{
|
||||
g_prefix_error (error, "Can't load desktop file %s: ", desktop_basename);
|
||||
g_autofree char *desktop_path = g_file_get_path (desktop);
|
||||
g_prefix_error (error, "Can't load desktop file %s: ", desktop_path);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user