Skip to content

Commit

Permalink
kvtenant: properly decode the server error before printing it
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
knz committed Aug 4, 2023
1 parent fbe8668 commit 796865d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/kv/kvclient/kvtenant/setting_overrides.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ func (c *connector) runTenantSettingsSubscription(ctx context.Context, startupCh
}
if e.Error != (errorspb.EncodedError{}) {
// Hard logical error. We expect io.EOF next.
log.Errorf(ctx, "error consuming TenantSettings RPC: %v", e.Error)
err := errors.DecodeError(ctx, e.Error)
log.Errorf(ctx, "error consuming TenantSettings RPC: %v", err)
continue
}

Expand Down

0 comments on commit 796865d

Please sign in to comment.