branch: externals/matlab-mode
commit 347384a62058ee6326e3f4913b325bab19be9181
Author: John Ciolfi <[email protected]>
Commit: John Ciolfi <[email protected]>

    matlab-ts-mode: improve error when non-utf8 content found
---
 matlab-ts-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/matlab-ts-mode.el b/matlab-ts-mode.el
index da10829e66..22f83a22be 100644
--- a/matlab-ts-mode.el
+++ b/matlab-ts-mode.el
@@ -254,8 +254,8 @@ content can crash Emacs via the matlab tree-sitter parser."
     (when bad-char-point
       (fundamental-mode)
       (goto-char bad-char-point)
-      (user-error "Buffer appears corrupt, non-printable utf8 character at 
point %d: %c"
-                  bad-char-point (char-before)))))
+      (user-error "Not entring matlab-ts-mode due to non-printable utf8 
character \"%c\" at point %d"
+                  (char-before) bad-char-point ))))
 
 ;;; Syntax table
 

Reply via email to