Allow debugger to handle byte-compile errors

This commit is contained in:
Henrik Lissner 2018-06-24 14:48:27 +02:00
parent 6e3afb0249
commit c9ac30889c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -796,7 +796,7 @@ If RECOMPILE-P is non-nil, only recompile out-of-date files."
(if recompile-p "Recompiled" "Compiled") (if recompile-p "Recompiled" "Compiled")
total-ok (- (length target-files) total-noop) total-ok (- (length target-files) total-noop)
total-noop)))) total-noop))))
(error ((debug error)
(print! (red "\n%s\n\n%%s" "There were breaking errors.") (print! (red "\n%s\n\n%%s" "There were breaking errors.")
"Reverting changes...") "Reverting changes...")
(signal 'doom-error (list 'byte-compile e)))))))) (signal 'doom-error (list 'byte-compile e))))))))