mirror of
https://github.com/penpot/penpot.git
synced 2026-09-12 15:09:38 +00:00
✨ Add EOF handling on sse response helper
This commit is contained in:
parent
002b1679c3
commit
ea6731e22b
@ -60,6 +60,9 @@
|
|||||||
(try
|
(try
|
||||||
(let [result (handler)]
|
(let [result (handler)]
|
||||||
(events/tap :end result))
|
(events/tap :end result))
|
||||||
|
|
||||||
|
(catch java.io.EOFException cause
|
||||||
|
(events/tap :error (errors/handle' cause request)))
|
||||||
(catch Throwable cause
|
(catch Throwable cause
|
||||||
(l/err :hint "unexpected error on processing sse response"
|
(l/err :hint "unexpected error on processing sse response"
|
||||||
:cause cause)
|
:cause cause)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user