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

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
(+lookup--run-handler handler identifier)
(error
(message "Lookup handler %S threw an error: %s" handler e)
(doom-log "Lookup handler %S threw an error: %s" handler e)
'fail))))
(cond ((eq result 'fail)
(set-window-configuration wconf)