Skip to content

Commit

Permalink
✨ Add EOF handling on sse response helper
Browse files Browse the repository at this point in the history
  • Loading branch information
niwinz authored and Alotor committed Oct 8, 2024
1 parent 002b167 commit ea6731e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/src/app/http/sse.clj
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
(try
(let [result (handler)]
(events/tap :end result))

(catch java.io.EOFException cause
(events/tap :error (errors/handle' cause request)))
(catch Throwable cause
(l/err :hint "unexpected error on processing sse response"
:cause cause)
Expand Down

0 comments on commit ea6731e

Please sign in to comment.