Packages api: simpler error handling

This commit is contained in:
Henrik Lissner 2018-01-04 16:09:20 -05:00
parent a29bc54c63
commit f3bad40fdf
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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)))))))
;; ;;