Commit fc5b005d authored by Joshua Gutow's avatar Joshua Gutow

Last unwrapped errors

These where missed in local lints but when a full lint was run these
popped up.
parent 83deb505
......@@ -658,7 +658,7 @@ WHERE address = $1
func (d *Database) GetAirdrop(address common.Address) (*Airdrop, error) {
row := d.db.QueryRow(getAirdropQuery, strings.ToLower(address.String()))
if row.Err() != nil {
return nil, fmt.Errorf("error getting airdrop: %v", row.Err())
return nil, fmt.Errorf("error getting airdrop: %w", row.Err())
}
airdrop := new(Airdrop)
......@@ -677,7 +677,7 @@ func (d *Database) GetAirdrop(address common.Address) (*Airdrop, error) {
return nil, nil
}
if err != nil {
return nil, fmt.Errorf("error scanning airdrop: %v", err)
return nil, fmt.Errorf("error scanning airdrop: %w", err)
}
return airdrop, nil
}
......@@ -3,5 +3,5 @@ package proxyd
import "fmt"
func wrapErr(err error, msg string) error {
return fmt.Errorf("%s %v", msg, err)
return fmt.Errorf("%s %w", msg, err)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment