diff options
| author | John Wiegley | 2017-12-17 00:35:01 -0800 |
|---|---|---|
| committer | John Wiegley | 2017-12-17 00:35:01 -0800 |
| commit | 13fb5f4f2e02ef08f8c87017a8eb03d69cd59910 (patch) | |
| tree | 94c329d952265f453ae98506b8d9ba06e58df323 | |
| parent | 2d226310f1fb053f9bba5abee101b31b38a919fc (diff) | |
| download | emacs-13fb5f4f2e02ef08f8c87017a8eb03d69cd59910.tar.gz emacs-13fb5f4f2e02ef08f8c87017a8eb03d69cd59910.zip | |
Guard a call to display-warning with ignore
Fixes https://github.com/jwiegley/use-package/issues/589
| -rw-r--r-- | lisp/use-package/use-package-core.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/use-package/use-package-core.el b/lisp/use-package/use-package-core.el index dad68591cb3..80f1fe1f1d0 100644 --- a/lisp/use-package/use-package-core.el +++ b/lisp/use-package/use-package-core.el | |||
| @@ -1510,10 +1510,11 @@ this file. Usage: | |||
| 1510 | (condition-case-unless-debug err | 1510 | (condition-case-unless-debug err |
| 1511 | (use-package-core name args) | 1511 | (use-package-core name args) |
| 1512 | (error | 1512 | (error |
| 1513 | (display-warning | 1513 | (ignore |
| 1514 | 'use-package | 1514 | (display-warning |
| 1515 | (format "Failed to parse package %s: %s" | 1515 | 'use-package |
| 1516 | name (error-message-string err)) :error)))) | 1516 | (format "Failed to parse package %s: %s" |
| 1517 | name (error-message-string err)) :error))))) | ||
| 1517 | (when use-package-compute-statistics | 1518 | (when use-package-compute-statistics |
| 1518 | `((use-package-statistics-gather :use-package ',name t))))))) | 1519 | `((use-package-statistics-gather :use-package ',name t))))))) |
| 1519 | 1520 | ||