mirror of
https://github.com/containers/podman.git
synced 2025-07-02 08:47:43 +08:00
Merge pull request #22442 from Luap99/store-error
libpod: wrap store setup error message
This commit is contained in:
@ -438,7 +438,7 @@ func makeRuntime(ctx context.Context, runtime *Runtime) (retErr error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return err
|
return fmt.Errorf("configure storage: %w", err)
|
||||||
}
|
}
|
||||||
defer func() {
|
defer func() {
|
||||||
if retErr != nil && store != nil {
|
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
|
// Ensure we have a store before refresh occurs
|
||||||
if runtime.store == nil {
|
if runtime.store == nil {
|
||||||
if err := runtime.configureStore(); err != nil {
|
if err := runtime.configureStore(); err != nil {
|
||||||
return err
|
return fmt.Errorf("configure storage: %w", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user