Skip to content

Commit cfa0290

Browse files
committed
feat: Update error for engine open including method where it stemmed from
1 parent ef0e2e2 commit cfa0290

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tsdb/shard.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ func (s *Shard) LastModifiedWithErr() (time.Time, error) {
477477
func (s *Shard) TimeRange() (int64, int64, error) {
478478
engine, err := s.Engine()
479479
if err != nil {
480-
return int64(0), int64(0), err
480+
return int64(0), int64(0), fmt.Errorf("failed getting shard time range: %w", err)
481481
}
482482

483483
minT, maxT := engine.TimeRange()

0 commit comments

Comments
 (0)