mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-19 14:22:18 -04:00
list: Show a warning if we can't load the current version
Conceptually similar to the previous commit, except it didn't crash before, just didn't display anything. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
@@ -182,9 +182,15 @@ print_table_for_refs (gboolean print_apps,
|
||||
continue;
|
||||
}
|
||||
|
||||
deploy_data = flatpak_deploy_get_deploy_data (deploy, FLATPAK_DEPLOY_VERSION_CURRENT, cancellable, NULL);
|
||||
deploy_data = flatpak_deploy_get_deploy_data (deploy, FLATPAK_DEPLOY_VERSION_CURRENT, cancellable, &local_error);
|
||||
|
||||
if (deploy_data == NULL)
|
||||
continue;
|
||||
{
|
||||
g_warning (_("Unable to inspect current version of %s: %s"),
|
||||
partial_ref, local_error->message);
|
||||
g_clear_error (&local_error);
|
||||
continue;
|
||||
}
|
||||
|
||||
runtime = flatpak_deploy_data_get_runtime (deploy_data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user