From: "Ludovic Courtès" <ludo@gnu.org>
To: guile-user@gnu.org
Subject: Re: excpetion printing
Date: Tue, 04 May 2021 22:21:05 +0200 [thread overview]
Message-ID: <87lf8ul07i.fsf@gnu.org> (raw)
In-Reply-To: 982f427b-1c27-1417-010e-67c91bc36100@gmail.com
Hi Matt,
Matt Wette <matt.wette@gmail.com> skribis:
> Is there any error I can throw in Guile that I don't catch myself
> but will result in a user-friendly error message at the top? Not this:
>
> Throw to key `misc' with args `("read-yaml-file" "file not found: ~S"
> ("demo1x.yml") #f)'.
You can call ‘print-exception’ like so:
(print-exception (current-error-port) frame key args)
This is using the pre-3.0 key+args exception style.
HTH,
Ludo’.
prev parent reply other threads:[~2021-05-04 20:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-21 0:43 excpetion printing Matt Wette
2021-04-21 1:18 ` Matt Wette
2021-05-04 20:21 ` Ludovic Courtès [this message]
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lf8ul07i.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guile-user@gnu.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).