Skip to content

Commit

Permalink
fix(metadb): wrong error message in PatchDB() implementation
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Aaron <[email protected]>
  • Loading branch information
andaaron committed Jan 9, 2025
1 parent 344bedc commit 5c21055
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/meta/boltdb/boltdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -1569,7 +1569,7 @@ func (bdw *BoltDB) PatchDB() error {
}

if version.GetVersionIndex(DBVersion) == -1 {
return fmt.Errorf("DB has broken format, no version found %w", err)
return fmt.Errorf("DB has broken format, no version index found for: %s", DBVersion)
}

for patchIndex, patch := range bdw.Patches {
Expand Down
2 changes: 1 addition & 1 deletion pkg/meta/dynamodb/dynamodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -2055,7 +2055,7 @@ func (dwr *DynamoDB) PatchDB() error {
}

if version.GetVersionIndex(DBVersion) == -1 {
return fmt.Errorf("DB has broken format, no version found %w", err)
return fmt.Errorf("DB has broken format, no version index found for: %s", DBVersion)
}

for patchIndex, patch := range dwr.Patches {
Expand Down

0 comments on commit 5c21055

Please sign in to comment.