Skip to content

Commit

Permalink
Merge pull request #2365 from thaJeztah/fix_loadIPAMDriver_error_hand…
Browse files Browse the repository at this point in the history
…ling

controller.loadIPAMDriver: Unwrap error type returned by PluginGetter
  • Loading branch information
euanh authored Jun 25, 2019
2 parents d13b784 + a05dc83 commit 5a177b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,7 @@ func (c *controller) loadIPAMDriver(name string) error {
}

if err != nil {
if err == plugins.ErrNotFound {
if errors.Cause(err) == plugins.ErrNotFound {
return types.NotFoundErrorf(err.Error())
}
return err
Expand Down

0 comments on commit 5a177b7

Please sign in to comment.