Compare commits

...

2 Commits

Author SHA1 Message Date
Danny Adams
887e974d8f GOFMT: Update to internal/operations/backup.go
Moved comments above expression to fix linting error.
2023-02-03 00:01:34 -05:00
Danny Adams
758d84e60a Updates to internal/operations/backup.go
Replaces clues return for wrapped error with stack trace.
2023-02-02 23:52:10 -05:00

View File

@ -110,7 +110,10 @@ type detailsWriter interface {
func (op *BackupOperation) Run(ctx context.Context) (err error) {
defer func() {
if r := recover(); r != nil {
err = clues.Wrap(r.(error), "panic recovery").WithClues(ctx).With("stacktrace", debug.Stack())
// TODO rkeepers use clues for error
// err = clues.Wrap(r.(error), "panic recovery").WithClues(ctx).With("stacktrace", debug.Stack())
temp := r.(error)
err = errors.Wrapf(temp, "panic recovery: stack trace: %s", string(debug.Stack()))
}
}()