GOFMT: Update to internal/operations/backup.go

Moved comments above expression to fix linting error.
This commit is contained in:
Danny Adams 2023-02-03 00:01:34 -05:00
parent 758d84e60a
commit 887e974d8f

View File

@ -110,10 +110,10 @@ type detailsWriter interface {
func (op *BackupOperation) Run(ctx context.Context) (err error) {
defer func() {
if r := recover(); r != nil {
temp := r.(error)
err = errors.Wrapf(temp, "panic recovery: stack trace: %s", string(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()))
}
}()