Skip to content

Commit b3f193d

Browse files
committed
follow-up-#52: fix the order of cause in fmt.Errorf
Signed-off-by: Wei Fu <[email protected]>
1 parent 7ec8e05 commit b3f193d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)