Skip to content

Commit

Permalink
more descriptive error message
Browse files Browse the repository at this point in the history
  • Loading branch information
reinkrul committed Dec 11, 2023
1 parent 1c64059 commit 1fe7014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discovery/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ func (s *sqlStore) updateTag(tx *gorm.DB, serviceID string, newTimestamp *Tag) (
ts := service.LastTag.Timestamp(service.TagPrefix)
if ts == nil {
// would be very weird: can't decode it, although it's our own tag
return nil, fmt.Errorf("invalid tag '%s'", service.LastTag)
return nil, fmt.Errorf("can't decode tag '%s', did someone alter 'service.tag_prefix' or 'service.last_tag' in the database?", service.LastTag)
}
currTimestamp = *ts
}
Expand Down

0 comments on commit 1fe7014

Please sign in to comment.