Skip to content

Commit

Permalink
catch Throwable instead of Exception if handling update in go-loop fails
Browse files Browse the repository at this point in the history
  • Loading branch information
martinklepsch committed Aug 19, 2017
1 parent 6ecc6c7 commit c7d4989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/morse/polling.clj
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
(when-let [data (<! updates)]
(try
(handler data)
(catch Exception e
(log/error e "Unable to handle update" data)))
(catch Throwable t
(log/error t "Unable to handle update" data)))
(recur))))


Expand Down

0 comments on commit c7d4989

Please sign in to comment.