1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00

Guard a call to display-warning with ignore

Fixes https://github.com/jwiegley/use-package/issues/589
This commit is contained in:
John Wiegley 2017-12-17 00:35:01 -08:00
parent 2d226310f1
commit 13fb5f4f2e

View File

@ -1510,10 +1510,11 @@ this file. Usage:
(condition-case-unless-debug err
(use-package-core name args)
(error
(display-warning
'use-package
(format "Failed to parse package %s: %s"
name (error-message-string err)) :error))))
(ignore
(display-warning
'use-package
(format "Failed to parse package %s: %s"
name (error-message-string err)) :error)))))
(when use-package-compute-statistics
`((use-package-statistics-gather :use-package ',name t)))))))