Skip to content

Commit

Permalink
Merge pull request #53 from fuweid/follow-up-52
Browse files Browse the repository at this point in the history
follow-up-#52: fix the order of cause in fmt.Errorf
  • Loading branch information
fuweid authored Sep 24, 2021
2 parents 7ec8e05 + b3f193d commit 1f6e8dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func init() {
ic.Meta.Exports["root"] = root
snapshotter, err := zfs.NewSnapshotter(root)
if err != nil {
return nil, fmt.Errorf("%s: %w", plugin.ErrSkipPlugin.Error(), err)
return nil, fmt.Errorf("%s: %w", err.Error(), plugin.ErrSkipPlugin)
}
return snapshotter, nil
},
Expand Down

0 comments on commit 1f6e8dc

Please sign in to comment.