summaryrefslogtreecommitdiff
path: root/vendor/github.com/Microsoft/hcsshim/computestorage/format.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/Microsoft/hcsshim/computestorage/format.go')
-rw-r--r--vendor/github.com/Microsoft/hcsshim/computestorage/format.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/Microsoft/hcsshim/computestorage/format.go b/vendor/github.com/Microsoft/hcsshim/computestorage/format.go
index 2952c8a66..fe0861d2a 100644
--- a/vendor/github.com/Microsoft/hcsshim/computestorage/format.go
+++ b/vendor/github.com/Microsoft/hcsshim/computestorage/format.go
@@ -2,9 +2,9 @@ package computestorage
import (
"context"
- "fmt"
"github.com/Microsoft/hcsshim/internal/oc"
+ "github.com/pkg/errors"
"go.opencensus.io/trace"
"golang.org/x/sys/windows"
)
@@ -20,7 +20,7 @@ func FormatWritableLayerVhd(ctx context.Context, vhdHandle windows.Handle) (err
err = hcsFormatWritableLayerVhd(vhdHandle)
if err != nil {
- return fmt.Errorf("failed to format writable layer vhd: %s", err)
+ return errors.Wrap(err, "failed to format writable layer vhd")
}
return nil
}