Don't eat stacks in backtraces in debug mode
The error handlers were a little too effective. They obscured a large chunk of the stacktrace after errors, even in debug mode. This fixes that and ensures backtraces in debug mode are more helpful.
This commit is contained in:
parent
ca2c8b5a45
commit
4685eddb66
4 changed files with 11 additions and 8 deletions
|
@ -247,7 +247,8 @@ easier to tell where the came from.
|
|||
Meant to be used with `run-hook-wrapped'."
|
||||
(condition-case e
|
||||
(funcall hook)
|
||||
(error (signal 'doom-hook-error (list hook e))))
|
||||
((debug error)
|
||||
(signal 'doom-hook-error (list hook e))))
|
||||
;; return nil so `run-hook-wrapped' won't short circuit
|
||||
nil)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue