GNU bug report logs -
#41956
[PATCH] ice-9: exceptions: Properly format the error message.
Previous Next
Full log
View this message in rfc822 format
Hi,
Adriano Peluso <randomlooser <at> riseup.net> writes:
> I understand that a overhaul of the exceptions stack intervened while
> this bug was open
>
> Is this still current ?
Yes. The affected code hasn't been touched since 2019. To recall, the
reproducer is this:
--8<---------------cut here---------------start------------->8---
(use-modules (srfi srfi-34)
(srfi srfi-35))
(guard (c ((message-condition? c)
(format #t "error: ~a~%" (condition-message c))))
(canonicalize-path "/no/such/path"))
--8<---------------cut here---------------end--------------->8---
or this:
--8<---------------cut here---------------start------------->8---
(use-modules (srfi srfi-34)
(srfi srfi-35))
(guard (c ((message-condition? c)
(format #t "error: ~a~%" (condition-message c))))
;; This is what (canonicalize-path "/do/not/exist) ends up doing:
(throw 'system-error "canonicalize-path" "~A" '("No such file or directory")))
error: ~A
--8<---------------cut here---------------end--------------->8---
--
Thanks,
Maxim
This bug report was last modified 1 year and 304 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.