switched fmt.Errorf() to errors.Wrap()

This commit is contained in:
Jarek Kowalski
2019-05-11 10:22:40 -07:00
parent 440a1de2b2
commit a6a153b22e
36 changed files with 123 additions and 106 deletions

View File

@@ -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() {