Tweak resource pool backtraces

This commit is contained in:
Christopher Baines 2025-02-03 12:16:07 +01:00
parent 92bb4b8d85
commit a2ab770536

View file

@ -459,6 +459,7 @@
(error-string (error-string
(call-with-output-string (call-with-output-string
(lambda (port) (lambda (port)
(display-backtrace stack port 3)
(simple-format (simple-format
port port
"exception in the ~A pool fiber, " name) "exception in the ~A pool fiber, " name)
@ -466,8 +467,7 @@
port port
(stack-ref stack 3) (stack-ref stack 3)
'%exception '%exception
(list exn)) (list exn))))))
(display-backtrace stack port 3)))))
(display error-string (display error-string
(current-error-port))) (current-error-port)))
(raise-exception exn)) (raise-exception exn))