tools/lookup: log handler errors

Silences them unless debug mode is on
This commit is contained in:
Henrik Lissner 2019-05-03 20:45:11 -04:00
parent d481fc1dd4
commit 927dcb274d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -118,7 +118,7 @@ This can be passed nil as its second argument to unset handlers for MODES. e.g.
(result (condition-case e (result (condition-case e
(+lookup--run-handler handler identifier) (+lookup--run-handler handler identifier)
(error (error
(message "Lookup handler %S threw an error: %s" handler e) (doom-log "Lookup handler %S threw an error: %s" handler e)
'fail)))) 'fail))))
(cond ((eq result 'fail) (cond ((eq result 'fail)
(set-window-configuration wconf) (set-window-configuration wconf)