From: "Brian Dolbec" <dolsen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoo-keys:master commit in: gkeys-gen/gkeygen/
Date: Tue, 10 Mar 2015 22:14:23 +0000 (UTC) [thread overview]
Message-ID: <1426025636.24e501c6dd471b69d262b27f254c197afcefc847.dolsen@gentoo> (raw)
commit: 24e501c6dd471b69d262b27f254c197afcefc847
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 10 22:13:56 2015 +0000
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Tue Mar 10 22:13:56 2015 +0000
URL: https://gitweb.gentoo.org/proj/gentoo-keys.git/commit/?id=24e501c6
gkeys-gen: Improve output by stating the error that occurred
The debug output in the log is not obvious, so stating it as well as the log file should help.
gkeys-gen/gkeygen/actions.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/gkeys-gen/gkeygen/actions.py b/gkeys-gen/gkeygen/actions.py
index 649eed7..0bc34cd 100644
--- a/gkeys-gen/gkeygen/actions.py
+++ b/gkeys-gen/gkeygen/actions.py
@@ -27,6 +27,7 @@ else:
_unicode = unicode
from gkeys.fileops import ensure_dirs
+from gkeys import log
Action_Map = OrderedDict([
@@ -174,8 +175,10 @@ class Actions(object):
result = ctx.genkey(key_params)
except gpgme.GpgmeError as e:
self.logger.debug("MAIN: _action_genkey: GpgmeError: %s" % str(e))
- self.logger.debug("MAIN: _action_genkey: Aborting... Failed to get a password.")
- messages.extend(['', "Aborting... Failed to get a password."])
+ self.logger.debug("MAIN: _action_genkey: Aborting... Gpgme errored out.")
+ messages.extend(['', "Aborting... Gpgme reported an error.\n",
+ " GpgmeError: %s\n" % str(e),
+ " See the log file for details: %s" % log.logname])
return (False, messages)
key = ctx.get_key(result.fpr, True)
self.logger.debug("MAIN: _action_genkey: Generated key: %s - %s"
next reply other threads:[~2015-03-10 22:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-10 22:14 Brian Dolbec [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-07-07 5:23 [gentoo-commits] proj/gentoo-keys:master commit in: gkeys-gen/gkeygen/ Brian Dolbec
2016-03-01 16:18 Brian Dolbec
2015-01-06 21:45 Brian Dolbec
2015-01-06 21:45 Brian Dolbec
2015-01-01 17:44 Brian Dolbec
2014-12-26 5:02 Brian Dolbec
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1426025636.24e501c6dd471b69d262b27f254c197afcefc847.dolsen@gentoo \
--to=dolsen@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox