mirror of
https://github.com/containers/podman.git
synced 2026-10-24 10:49:10 -04: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:
1 file changed
+2
-2
+2
-2
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user