Skip to content

Commit 1f6e8dc

Browse files
authored
Merge pull request #53 from fuweid/follow-up-52
follow-up-#52: fix the order of cause in fmt.Errorf
2 parents 7ec8e05 + b3f193d commit 1f6e8dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func init() {
5252
ic.Meta.Exports["root"] = root
5353
snapshotter, err := zfs.NewSnapshotter(root)
5454
if err != nil {
55-
return nil, fmt.Errorf("%s: %w", plugin.ErrSkipPlugin.Error(), err)
55+
return nil, fmt.Errorf("%s: %w", err.Error(), plugin.ErrSkipPlugin)
5656
}
5757
return snapshotter, nil
5858
},

0 commit comments

Comments
 (0)