all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Daiki Ueno <ueno@unixuser.org>
Cc: 9255@debbugs.gnu.org
Subject: bug#9255: Obscure epa-file error message
Date: Sun, 07 Aug 2011 22:49:47 -0400	[thread overview]
Message-ID: <jwvty9sk4ag.fsf-monnier+INBOX@gnu.org> (raw)
In-Reply-To: <m3d3ggpt0e.fsf-ueno@unixuser.org> (Daiki Ueno's message of "Mon,  08 Aug 2011 10:54:41 +0900")

>> Opening output file: Encrypt failed: ((exit) (invalid-recipient (reason
>> . 0) (requested-recipient . "36DB083C608CC24C")))
>> 
>> It turns out the problem was simply that my encryption key was expired.
>> Could someone figure out how to get a more helpful error message?

> I guess you won't get any further information even if you call gpg from
> the command line:

> $ gpg --encrypt -r A6CC6651 test.txt
> gpg: A6CC6651: skipped: unusable public key
> gpg: test.txt: encryption failed: unusable public key

It's not great, but "unusable public key" is a good improvement over
"Opening output file: Encrypt failed: ((exit) (invalid-recipient (reason
. 0) (requested-recipient . "36DB083C608CC24C")))"

I guess "invalid-recipient" does mean the same as "unusable public key"
at some level, but to this end user "unusable public key" is a lot
more clear.


        Stefan





  reply	other threads:[~2011-08-08  2:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-06  3:21 bug#9255: Obscure epa-file error message Stefan Monnier
2011-08-08  1:54 ` Daiki Ueno
2011-08-08  2:49   ` Stefan Monnier [this message]
2011-08-08  7:16     ` Daiki Ueno

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=jwvty9sk4ag.fsf-monnier+INBOX@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=9255@debbugs.gnu.org \
    --cc=ueno@unixuser.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.