Skip to content

Commit

Permalink
follow-up-containerd#52: fix the order of cause in fmt.Errorf
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Fu <fuweid89@gmail.com>
  • Loading branch information
fuweid committed Sep 22, 2021
1 parent 7ec8e05 commit b3f193d
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 b3f193d

Please sign in to comment.