Skip to content

Commit

Permalink
Don't swallow errors silently in nrepl-net-process-input
Browse files Browse the repository at this point in the history
  • Loading branch information
bbatsov committed May 24, 2014
1 parent ff0a4dd commit 5e1d5e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nrepl-client.el
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ Remove the processed data from the buffer if the decode successful."
Assume that any error during decoding indicates an incomplete message."
(with-current-buffer (process-buffer process)
(let ((nrepl-connection-dispatch (current-buffer)))
(ignore-errors
;; TODO: Implement fine-grained error handling
(with-demoted-errors
(while (> (buffer-size) 1)
(let ((responses (nrepl-net-decode)))
(dolist (response responses)
Expand Down

0 comments on commit 5e1d5e3

Please sign in to comment.