mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-11 13:16:53 +00:00
Other: Don't dump stack trace to error when not panicking
This commit is contained in:
@ -62,7 +62,7 @@ func catch(handlers ...func() error) {
|
||||
|
||||
for _, handler := range handlers {
|
||||
if err := handler(); err != nil {
|
||||
logrus.WithError(xerrors.WithStack(err)).Error("Catch handler failed")
|
||||
logrus.WithError(err).Error("Catch handler failed")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user