aboutsummaryrefslogtreecommitdiffhomepage
path: root/common/hugio/copy.go
diff options
context:
space:
mode:
Diffstat (limited to 'common/hugio/copy.go')
-rw-r--r--common/hugio/copy.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/hugio/copy.go b/common/hugio/copy.go
index be4506f4c..7c52f8723 100644
--- a/common/hugio/copy.go
+++ b/common/hugio/copy.go
@@ -14,13 +14,12 @@
package hugio
import (
+ "fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
- "github.com/pkg/errors"
-
"github.com/spf13/afero"
)
@@ -60,7 +59,7 @@ func CopyDir(fs afero.Fs, from, to string, shouldCopy func(filename string) bool
}
if !fi.IsDir() {
- return errors.Errorf("%q is not a directory", from)
+ return fmt.Errorf("%q is not a directory", from)
}
err = fs.MkdirAll(to, 0777) // before umask