[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: excpetion printing
From: |
Ludovic Courtès |
Subject: |
Re: excpetion printing |
Date: |
Tue, 04 May 2021 22:21:05 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
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 in Thread] |
Current Thread |
[Next in Thread] |
- Re: excpetion printing,
Ludovic Courtès <=