Subject: bug#50629: 28.0.50; hard to debug an uncaught error with ert

From: Gerd Möllmann <[email-masked]>
Date: Mon, 29 Aug 2022 17:20:03 +0200

Lars Ingebrigtsen <[email-masked]> writes:

> Gerd Möllmann <[email-masked]> writes:
>> You mean the signal-hook-function?  It is invoked, so one can do
>> something there.
>
> No, I was thinking in the
>
> 			  (args-574 (condition-case err (let ( foo)
> 							  (list 42 (foo)))
> 				      (error (progn
> 					       (setq fn-573 #'signal)
>
> `error' handler here...

I'm afraid that's too late.  The stack frames of the error have already
been unwound when we are back in the condition-case.