From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 7F9BA138CBD for ; Tue, 10 Mar 2015 22:14:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F0D34E0883; Tue, 10 Mar 2015 22:14:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8B845E0883 for ; Tue, 10 Mar 2015 22:14:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 449BC340ACA for ; Tue, 10 Mar 2015 22:14:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7225F137A0 for ; Tue, 10 Mar 2015 22:14:23 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1426025636.24e501c6dd471b69d262b27f254c197afcefc847.dolsen@gentoo> Subject: [gentoo-commits] proj/gentoo-keys:master commit in: gkeys-gen/gkeygen/ X-VCS-Repository: proj/gentoo-keys X-VCS-Files: gkeys-gen/gkeygen/actions.py X-VCS-Directories: gkeys-gen/gkeygen/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 24e501c6dd471b69d262b27f254c197afcefc847 X-VCS-Branch: master Date: Tue, 10 Mar 2015 22:14:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 93e57233-9733-44c5-a8c3-51d139dbf13b X-Archives-Hash: d1dac930160ae3c9a1a3971887fdb0dc commit: 24e501c6dd471b69d262b27f254c197afcefc847 Author: Brian Dolbec gentoo org> AuthorDate: Tue Mar 10 22:13:56 2015 +0000 Commit: Brian Dolbec gentoo 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"