diff options
author | Christopher Baines <mail@cbaines.net> | 2023-07-24 08:40:07 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2023-07-24 08:40:07 +0100 |
commit | 3ef3131c32b61acd9713592eafa3536308191205 (patch) | |
tree | 47da572ee6b0ac58ffc33bc4146f99d89fd72947 | |
parent | 31e0571653b2cfd457cd28161db7e0043ac86fcb (diff) | |
download | bffe-3ef3131c32b61acd9713592eafa3536308191205.tar bffe-3ef3131c32b61acd9713592eafa3536308191205.tar.gz |
Report backtraces in the state channel
-rw-r--r-- | bffe/server.scm | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/bffe/server.scm b/bffe/server.scm index 1bbbe67..c725d2f 100644 --- a/bffe/server.scm +++ b/bffe/server.scm @@ -152,16 +152,20 @@ exn)) #f) (lambda () - (let ((response - body - (http-get* - (string->uri - (string-append event-source "/state"))))) - (let ((state - (json->scm body))) - (put-message reply-channel - state) - state))) + (with-throw-handler #t + (lambda () + (let ((response + body + (http-get* + (string->uri + (string-append event-source "/state"))))) + (let ((state + (json->scm body))) + (put-message reply-channel + state) + state))) + (lambda _ + (backtrace)))) #:unwind? #t))) (if new-state (loop (time-second (current-time)) |