Skip to content

Commit

Permalink
fix(remote-read): return err instead of nil (#3053)
Browse files Browse the repository at this point in the history
Signed-off-by: Furkan <furkan.turkal@trendyol.com>

Signed-off-by: Furkan <furkan.turkal@trendyol.com>
  • Loading branch information
Dentrax authored Sep 27, 2022
1 parent 3dee1a4 commit 44bd7bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@

### Mimirtool

* [BUGFIX] mimir-tool remote-read: fix returns where some conditions [return nil error even if there is error](https://github.com/grafana/cortex-tools/issues/260). #3053

### Query-tee

### Mimir Continuous Test
Expand Down
4 changes: 2 additions & 2 deletions pkg/mimirtool/commands/remote_read.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ func (c *RemoteReadCommand) dump(k *kingpin.ParseContext) error {

timeseries, err := query(context.Background())
if err != nil {
return nil
return err
}

iterator := newTimeSeriesIterator(timeseries)
Expand Down Expand Up @@ -309,7 +309,7 @@ func (c *RemoteReadCommand) stats(k *kingpin.ParseContext) error {

timeseries, err := query(context.Background())
if err != nil {
return nil
return err
}

num := struct {
Expand Down

0 comments on commit 44bd7bc

Please sign in to comment.