handle error formatting on `context.DeadlineExceeded` from hooks using fxevent
distractedm1nd opened this issue · 1 comments
distractedm1nd commented
When the context exceeds a deadline during OnStart
, the stack trace is added to the error passed up.
If I understand correctly, the linked code is where this wrapping occurs, and the preferred solution is to let fxevent handle the display of the error.
We recently came across this when trying to suppress the stack trace in an error during startup celestiaorg/celestia-node#1458. The stack trace is pretty scary for users, and doesn't appear on other startup errors that don't exceed a context deadline.
distractedm1nd commented
would be happy to assist with a PR, but can't judge how big the scope would be yet, so I will wait for some feedback first :)