From 1ca4f02a69cb634ab51af44bdf9def2aad1680be Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 27 Nov 2023 10:54:18 -0500 Subject: [PATCH] status: Add error prefix for gpg verification It's helpful to see which deployment has an error. --- src/ostree/ot-admin-builtin-status.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ostree/ot-admin-builtin-status.c b/src/ostree/ot-admin-builtin-status.c index 3addfd16..9aa49aee 100644 --- a/src/ostree/ot-admin-builtin-status.c +++ b/src/ostree/ot-admin-builtin-status.c @@ -155,7 +155,8 @@ deployment_print_status (OstreeSysroot *sysroot, OstreeRepo *repo, OstreeDeploym else if (local_error != NULL) { g_propagate_error (error, g_steal_pointer (&local_error)); - return FALSE; + return glnx_prefix_error (error, "Deployment %i", + ostree_deployment_get_index (deployment)); } const guint n_signatures = ostree_gpg_verify_result_count_all (result); -- 2.30.2