|
@@ -303,7 +303,9 @@ FORMAT and ARGS are passed to `message'."
|
|
;; Remove problematic file.
|
|
;; Remove problematic file.
|
|
(unless (bufferp buffer-or-file) (delete-file buffer-or-file))
|
|
(unless (bufferp buffer-or-file) (delete-file buffer-or-file))
|
|
;; Do not report the known error to user.
|
|
;; Do not report the known error to user.
|
|
- (unless (string-match-p "Invalid read syntax" (error-message-string err))
|
|
|
|
|
|
+ (if (string-match-p "Invalid read syntax" (error-message-string err))
|
|
|
|
+ (message "Emacs reader failed to read data in %S. The error was: %S"
|
|
|
|
+ buffer-or-file (error-message-string err))
|
|
(warn "Emacs reader failed to read data in %S. The error was: %S"
|
|
(warn "Emacs reader failed to read data in %S. The error was: %S"
|
|
buffer-or-file (error-message-string err)))
|
|
buffer-or-file (error-message-string err)))
|
|
nil))))
|
|
nil))))
|