Skip to content

Commit

Permalink
chore: improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba-4chain committed Dec 2, 2024
1 parent c01af3e commit b1b82fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (p *PostgreSQL) UpsertAndGetMinedTransactions(ctx context.Context, txHashes

rows, err := p.db.QueryContext(ctx, q, pq.Array(txHashes))
if err != nil {
return nil, errors.Join(store.ErrFailedToInsertTransactions, err)
return nil, errors.Join(store.ErrFailedToUpsertTransactions, err)
}
defer rows.Close()

Expand Down
2 changes: 1 addition & 1 deletion internal/blocktx/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var (
ErrUnableToDeleteRows = errors.New("unable to delete rows")
ErrFailedToInsertBlock = errors.New("failed to insert block")
ErrFailedToOpenDB = errors.New("failed to open postgres database")
ErrFailedToInsertTransactions = errors.New("failed to bulk insert transactions")
ErrFailedToUpsertTransactions = errors.New("failed to register and get mined transactions")
ErrFailedToGetRows = errors.New("failed to get rows")
ErrFailedToSetBlockProcessing = errors.New("failed to set block processing")
ErrFailedToExecuteTxUpdateQuery = errors.New("failed to execute transaction update query")
Expand Down

0 comments on commit b1b82fa

Please sign in to comment.