Fix some exception handling issues

This commit is contained in:
Christopher Baines 2025-03-08 09:39:27 +00:00
parent 3aab1be1e7
commit 4e33da98aa
2 changed files with 38 additions and 2 deletions

View file

@ -72,7 +72,7 @@
reply-channels)))
(map
(match-lambda
(('exception exn stack)
(('exception exn)
(raise-exception exn))
(result
(apply values result)))
@ -254,7 +254,10 @@
(let ((stack (make-stack #t
0 prompt-tag
0 (and prompt-tag 1))))
(return (list 'exception exn stack))))))
(return (list 'exception
(make-exception
exn
(make-knots-exception stack))))))))
(lambda ()
(call-with-values
(lambda ()