Packages api: simpler error handling
This commit is contained in:
parent
a29bc54c63
commit
f3bad40fdf
1 changed files with 2 additions and 6 deletions
|
@ -235,14 +235,10 @@ Used by `doom//packages-install'."
|
||||||
(quiet! (doom-refresh-packages t))
|
(quiet! (doom-refresh-packages t))
|
||||||
,@body))
|
,@body))
|
||||||
('user-error
|
('user-error
|
||||||
(message! (bold (red " ERROR: (%s) %s"
|
(message! (bold (red " ERROR: %s" ex))))
|
||||||
(car ex)
|
|
||||||
(error-message-string ex)))))
|
|
||||||
('error
|
('error
|
||||||
(doom-refresh-clear-cache)
|
(doom-refresh-clear-cache)
|
||||||
(message! (bold (red " FATAL ERROR: (%s) %s"
|
(message! (bold (red " FATAL ERROR: %s" ex))))))
|
||||||
(car ex)
|
|
||||||
(error-message-string ex)))))))
|
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue