mirror of
https://github.com/containers/podman
synced 2024-10-19 00:34:18 +00:00
libpod: wrap store setup error message
In cases where we fail to configure the error is returned as it and may be missing useful context. Make sure we know the error happened as part of the storage setup. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
parent
db93e2cf2b
commit
ce9054ff45
|
@ -438,7 +438,7 @@ func makeRuntime(ctx context.Context, runtime *Runtime) (retErr error) {
|
|||
}
|
||||
}
|
||||
|
||||
return err
|
||||
return fmt.Errorf("configure storage: %w", err)
|
||||
}
|
||||
defer func() {
|
||||
if retErr != nil && store != nil {
|
||||
|
@ -616,7 +616,7 @@ func makeRuntime(ctx context.Context, runtime *Runtime) (retErr error) {
|
|||
// Ensure we have a store before refresh occurs
|
||||
if runtime.store == nil {
|
||||
if err := runtime.configureStore(); err != nil {
|
||||
return err
|
||||
return fmt.Errorf("configure storage: %w", err)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue