Merge pull request #44894 from thaJeztah/better_graphdriver_error
layer: NewStoreFromOptions(): include driver-name in error message
This commit is contained in:
commit
6f14c8ee5a
1 changed files with 3 additions and 0 deletions
|
@ -62,6 +62,9 @@ func NewStoreFromOptions(options StoreOptions) (Store, error) {
|
|||
ExperimentalEnabled: options.ExperimentalEnabled,
|
||||
})
|
||||
if err != nil {
|
||||
if options.GraphDriver != "" {
|
||||
return nil, fmt.Errorf("error initializing graphdriver: %v: %s", err, options.GraphDriver)
|
||||
}
|
||||
return nil, fmt.Errorf("error initializing graphdriver: %v", err)
|
||||
}
|
||||
logrus.Debugf("Initialized graph driver %s", driver)
|
||||
|
|
Loading…
Add table
Reference in a new issue