mirror of
https://github.com/containers/podman.git
synced 2025-10-24 06:54:17 +08:00
Merge pull request #23772 from mheon/fix_volume_get_sqlite
Fix an improperly ignored error in SQLite
This commit is contained in:
@ -2157,6 +2157,7 @@ func (s *SQLiteState) Volume(name string) (*Volume, error) {
|
||||
if errors.Is(err, sql.ErrNoRows) {
|
||||
return nil, define.ErrNoSuchVolume
|
||||
}
|
||||
return nil, fmt.Errorf("querying volume %s: %w", name, err)
|
||||
}
|
||||
|
||||
vol := new(Volume)
|
||||
|
||||
Reference in New Issue
Block a user