Skip to content

Commit

Permalink
chore(linter): don't wrap error with no-const string
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal-Leszczynski committed Nov 8, 2024
1 parent c93fbb6 commit 57e40c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/scyllaclient/client_scylla.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
)

// ErrHostInvalidResponse is to indicate that one of the root-causes is the invalid response from scylla-server.
var ErrHostInvalidResponse = fmt.Errorf("invalid response from host")
var ErrHostInvalidResponse = errors.New("invalid response from host")

// ClusterName returns cluster name.
func (c *Client) ClusterName(ctx context.Context) (string, error) {
Expand Down Expand Up @@ -996,7 +996,7 @@ func (c *Client) TableDiskSizeReport(ctx context.Context, hostKeyspaceTables Hos

size, err := c.TableDiskSize(ctx, v.Host, v.Keyspace, v.Table)
if err != nil {
return parallel.Abort(errors.Wrapf(stdErrors.Join(err, ErrHostInvalidResponse), v.Host))
return parallel.Abort(fmt.Errorf("%s: %w", v.Host, stdErrors.Join(err, ErrHostInvalidResponse)))
}
c.logger.Debug(ctx, "Table disk size",
"host", v.Host,
Expand Down

0 comments on commit 57e40c1

Please sign in to comment.