mirror of
https://github.com/moby/moby.git
synced 2026-08-03 14:41:03 +00:00
Merge pull request #41215 from cpuguy83/better_plugin_errors
Add more error details on plugin get
This commit is contained in:
@@ -24,6 +24,7 @@ package plugins // import "github.com/docker/docker/pkg/plugins"
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
@@ -265,7 +266,7 @@ func Get(name, imp string) (*Plugin, error) {
|
||||
logrus.Debugf("%s implements: %s", name, imp)
|
||||
return pl, nil
|
||||
}
|
||||
return nil, ErrNotImplements
|
||||
return nil, fmt.Errorf("%w: plugin=%q, requested implementation=%q", ErrNotImplements, name, imp)
|
||||
}
|
||||
|
||||
// Handle adds the specified function to the extpointHandlers.
|
||||
|
||||
Reference in New Issue
Block a user