Skip to content

Commit d84f23f

Browse files
committed
Ignore errors is OSC handler
This helps recovering from Emacs bug#73420, but also makes sense in general so at least we can log the error message. Closes #6.
1 parent 4ab988a commit d84f23f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: drepl.el

+4-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,10 @@ and this function returns the response data directly."
215215
"Function intended for use as an entry of `ansi-osc-handlers'.
216216
TEXT is a still unparsed message received from the interpreter."
217217
(drepl--log-message "read %s" text)
218-
(drepl--handle-response drepl--current (drepl--json-decode text)))
218+
(condition-case err
219+
(drepl--handle-response drepl--current (drepl--json-decode text))
220+
(t (drepl--log-message "error: %s" err)
221+
(message "Error processing dREPL message"))))
219222

220223
(defun drepl--handle-response (repl data)
221224
"React to message DATA coming from the REPL process."

0 commit comments

Comments
 (0)