matlab-shell.el:

(matlab-shell-capture-text): Improve error message
so text can be used with eval.
This commit is contained in:
Eric Ludlam 2019-12-14 18:46:02 -05:00
parent 550dd09df0
commit e28a218328

View file

@ -1016,7 +1016,7 @@ STR is provided by comint, but is unused."
(condition-case nil
(let ((forms (read txt)))
(eval forms))
(error (message "Failed to evaluate forms from MATLAB: %S" txt))
(error (message "Failed to evaluate forms from MATLAB: \"%s\"" txt))
)
(save-excursion
(when insertbuff