Merge pull request #44894 from thaJeztah/better_graphdriver_error

layer: NewStoreFromOptions(): include driver-name in error message
This commit is contained in:
Sebastiaan van Stijn 2023-03-09 12:44:23 +01:00 committed by GitHub
commit 6f14c8ee5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)