From: Matt Wette <matt.wette@gmail.com>
To: guile-user@gnu.org
Subject: Re: excpetion printing
Date: Tue, 20 Apr 2021 18:18:13 -0700 [thread overview]
Message-ID: <efff905c-ddfb-a16a-8064-bdf769bca122@gmail.com> (raw)
In-Reply-To: <982f427b-1c27-1417-010e-67c91bc36100@gmail.com>
On 4/20/21 5:43 PM, Matt Wette wrote:
> 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)'.
>
>
I did get this:
yaml.scm:37:4: In procedure read-yaml-file:
ERROR:
1. &message: "read-yaml-file: can't access file:demo1x.yml
using guile 3.0 from
(cond-expand
(guile-3
(use-modules (ice-9 exceptions))
(define (file-not-found filename)
(raise-exception
(make-exception-with-message
(string-append "read-yaml-file: can't access file:"
filename)))))
(else
(define (file-not-found filename)
(scm-error 'misc "read-yaml-file"
"file not found: ~S" (list filename) #f))))
next prev parent reply other threads:[~2021-04-21 1:18 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 [this message]
2021-05-04 20:21 ` Ludovic Courtès
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=efff905c-ddfb-a16a-8064-bdf769bca122@gmail.com \
--to=matt.wette@gmail.com \
--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).