This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/comdev-people.git


The following commit(s) were added to refs/heads/main by this push:
     new 77bb2fa  Ensure we return the error message
77bb2fa is described below

commit 77bb2fa97780c56da5ce82fcf88c44def0bb74b9
Author: Sebb <s...@apache.org>
AuthorDate: Wed Jul 2 12:45:16 2025 +0100

    Ensure we return the error message
---
 tools/pgp.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/pgp.py b/tools/pgp.py
index f9965cd..699f096 100644
--- a/tools/pgp.py
+++ b/tools/pgp.py
@@ -77,6 +77,7 @@ def pgpfunc_one(gpg_server, func, *args):
         success = len(cpi.stderr) == 0 and len(grv) == 0
     if not success:
         log.write(f"{success} {cpi.stderr} {grv}\n")
+        grv = grv or cpi.stderr # ensure we return the error message
 
     return success, grv
 

Reply via email to