aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/Microsoft/hcsshim/computestorage/export.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/Microsoft/hcsshim/computestorage/export.go')
-rw-r--r--vendor/github.com/Microsoft/hcsshim/computestorage/export.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/Microsoft/hcsshim/computestorage/export.go b/vendor/github.com/Microsoft/hcsshim/computestorage/export.go
index b1721ef25..649b2602a 100644
--- a/vendor/github.com/Microsoft/hcsshim/computestorage/export.go
+++ b/vendor/github.com/Microsoft/hcsshim/computestorage/export.go
@@ -3,9 +3,9 @@ package computestorage
import (
"context"
"encoding/json"
- "fmt"
"github.com/Microsoft/hcsshim/internal/oc"
+ "github.com/pkg/errors"
"go.opencensus.io/trace"
)
@@ -40,7 +40,7 @@ func ExportLayer(ctx context.Context, layerPath, exportFolderPath string, layerD
err = hcsExportLayer(layerPath, exportFolderPath, string(ldbytes), string(obytes))
if err != nil {
- return fmt.Errorf("failed to export layer: %s", err)
+ return errors.Wrap(err, "failed to export layer")
}
return nil
}