Skip to content

Commit

Permalink
chore(api): improve logging of error in GetValidatorDashboardWithdrawals
Browse files Browse the repository at this point in the history
BEDS-90
  • Loading branch information
guybrush committed Oct 2, 2024
1 parent d83133d commit 1426f64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/pkg/api/data_access/vdb_withdrawals.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func (d *DataAccessService) GetValidatorDashboardWithdrawals(ctx context.Context

err = d.readerDb.SelectContext(ctx, &queryResult, withdrawalsQuery, queryParams...)
if err != nil {
return nil, nil, fmt.Errorf("error getting withdrawals for validators: %+v: %w", validators, err)
return nil, nil, fmt.Errorf("error getting withdrawals for dashboardId: %d (%d validators): %w", dashboardId.Id, len(validators), err)
}

if len(queryResult) == 0 {
Expand Down

0 comments on commit 1426f64

Please sign in to comment.