Merge pull request #23772 from mheon/fix_volume_get_sqlite

Fix an improperly ignored error in SQLite
This commit is contained in:
openshift-merge-bot[bot]
2024-08-28 16:43:50 +00:00
committed by GitHub

View File

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