summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-gpg-verify-result.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2017-05-26 14:35:34 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2017-05-26 19:27:11 +0000
commit88a1fc92a9937fafd195d70abc80a30be64fc136 (patch)
treea49fb1b62005e6a48e18b0385a6ba03906246dc1 /src/libostree/ostree-gpg-verify-result.c
parent9bf8a8503afa5cc7acacc8203490330292da7f85 (diff)
downloadostree-88a1fc92a9937fafd195d70abc80a30be64fc136.tar.gz
tree-wide: Add+run spatch to use glnx_throw()
I had to run a sed job to add whitespace after, but otherwise this was easy. Closes: #890 Approved by: jlebon
Diffstat (limited to 'src/libostree/ostree-gpg-verify-result.c')
-rw-r--r--src/libostree/ostree-gpg-verify-result.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libostree/ostree-gpg-verify-result.c b/src/libostree/ostree-gpg-verify-result.c
index cd709b7c..0277ce1e 100644
--- a/src/libostree/ostree-gpg-verify-result.c
+++ b/src/libostree/ostree-gpg-verify-result.c
@@ -665,9 +665,8 @@ ostree_gpg_verify_result_require_valid_signature (OstreeGpgVerifyResult *result,
if (ostree_gpg_verify_result_count_valid (result) == 0)
{
- g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED,
- "GPG signatures found, but none are in trusted keyring");
- return FALSE;
+ return glnx_throw (error, "%s",
+ "GPG signatures found, but none are in trusted keyring");
}
return TRUE;