mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
Wrap all errors with tracerr
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
"github.com/dghubble/sling"
|
||||
"github.com/hermeznetwork/hermez-node/db/historydb"
|
||||
"github.com/hermeznetwork/hermez-node/log"
|
||||
"github.com/hermeznetwork/tracerr"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -66,7 +67,7 @@ func (p *PriceUpdater) UpdatePrices() {
|
||||
func (p *PriceUpdater) UpdateTokenList() error {
|
||||
tokenSymbols, err := p.db.GetTokenSymbols()
|
||||
if err != nil {
|
||||
return err
|
||||
return tracerr.Wrap(err)
|
||||
}
|
||||
p.tokenSymbols = tokenSymbols
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user