mirror of
https://github.com/kopia/kopia.git
synced 2026-05-18 19:54:37 -04:00
switched fmt.Errorf() to errors.Wrap()
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/kopia/repo"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -28,7 +28,7 @@ func runCacheClearCommand(ctx context.Context, rep *repo.Repository) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
return fmt.Errorf("caching not enabled")
|
||||
return errors.New("caching not enabled")
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
||||
Reference in New Issue
Block a user