Skip to content

Commit

Permalink
Fix error message being lost when upgrading
Browse files Browse the repository at this point in the history
Fixes an issue where an error message was being discarded. Occurs when
upgrading a bundle.
  • Loading branch information
sebsoto committed Aug 15, 2024
1 parent 5d9a920 commit e502edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/olm/operator/registry/index_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ func (c IndexImageCatalogCreator) UpdateCatalog(ctx context.Context, cs *v1alpha
// check if index image adopts File-Based Catalog or SQLite index image format
isFBCImage, err := fbcutil.IsFBC(ctx, c.IndexImage)
if err != nil {
return fmt.Errorf("error in upgrading the bundle %q that was installed traditionally", c.BundleImage)
return fmt.Errorf("unable to determine if index image adopts File-Based Catalog or SQLite format: %v", err)
}
c.HasFBCLabel = isFBCImage

Expand Down

0 comments on commit e502edb

Please sign in to comment.