Merge pull request #22442 from Luap99/store-error

libpod: wrap store setup error message
This commit is contained in:
openshift-merge-bot[bot] 2024-04-22 13:47:08 +00:00 committed by GitHub
commit 96331d40d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

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