Re: [DRAFT] Improve reporting of exception locations

2022-10-12 Thread Maxime Devos
On 12-10-2022 08:35, Andrew Whatson wrote: Hello guile-dev! I'm working on a revised patch to improve the reporting of exception locations, after last month's initial flawed attempt. The new patch takes the more radical approach of capturing the stack when an exception is created, AFAICT, i

[DRAFT] Improve reporting of exception locations

2022-10-11 Thread Andrew Whatson
TODO: use exception-stack in other error handlers TODO: print-exception variant for exception objects TODO: test cases for other kinds of errors * module/ice-9/exceptions.scm (&stack): New exception type. (convert-guile-exception): Capture the stack when creating an exception. * module/system/repl

[DRAFT] Improve reporting of exception locations

2022-10-11 Thread Andrew Whatson
Hello guile-dev! I'm working on a revised patch to improve the reporting of exception locations, after last month's initial flawed attempt. The new patch takes the more radical approach of capturing the stack when an exception is created, including it as part of the compound exception object. Th