0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-10 14:51:37 -05:00

Add EOF handling on sse response helper

This commit is contained in:
Andrey Antukh 2024-10-08 11:01:34 +02:00 committed by Alonso Torres
parent 002b1679c3
commit ea6731e22b

View file

@ -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)