mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
* lisp/emacs-lisp/comp.el (comp--native-compile): Use error-message-string
This commit is contained in:
parent
7d3c3cad93
commit
b2d350cfc0
1 changed files with 7 additions and 5 deletions
|
|
@ -3398,16 +3398,18 @@ the deferred compilation mechanism."
|
|||
(if (and comp-async-compilation
|
||||
(not (eq (car err) 'native-compiler-error)))
|
||||
(progn
|
||||
(message (if err-val
|
||||
"%s: Error: %s %s"
|
||||
"%s: Error %s")
|
||||
(message "%s: Error %s"
|
||||
function-or-file
|
||||
(get (car err) 'error-message)
|
||||
(car-safe err-val))
|
||||
(error-message-string err))
|
||||
(kill-emacs -1))
|
||||
;; Otherwise re-signal it adding the compilation input.
|
||||
;; FIXME: We can't just insert arbitrary info in the
|
||||
;; error-data part of an error: the handler may expect
|
||||
;; specific data at specific positions!
|
||||
(signal (car err) (if (consp err-val)
|
||||
(cons function-or-file err-val)
|
||||
;; FIXME: `err-val' is supposed to be
|
||||
;; a list, so it can only be nil here!
|
||||
(list function-or-file err-val)))))))
|
||||
(if (stringp function-or-file)
|
||||
data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue