Fix SPN intel updates

This commit is contained in:
Daniel
2025-04-15 11:26:59 +02:00
parent 846646c7e9
commit 9801aae3e7
4 changed files with 21 additions and 7 deletions

View File

@@ -241,7 +241,10 @@ func (index *Index) ShouldUpgradeTo(newIndex *Index) error {
return nil
case index.Name != newIndex.Name:
return errors.New("new index name does not match")
return fmt.Errorf(
"new index name (%q) does not match current index name (%q)",
newIndex.Name, index.Name,
)
case index.isLocallyGenerated:
if newIndex.versionNum.GreaterThan(index.versionNum) {