mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2025-01-08 05:52:10 +07:00
fix: slog args message become slog.Attr
This commit is contained in:
parent
a11986ac0c
commit
acc70111c8
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ func (r *MoneroRepo) Node(id int) (Node, error) {
|
||||||
var node Node
|
var node Node
|
||||||
err := r.db.Get(&node, `SELECT * FROM tbl_node WHERE id = ?`, id)
|
err := r.db.Get(&node, `SELECT * FROM tbl_node WHERE id = ?`, id)
|
||||||
if err != nil && err != sql.ErrNoRows {
|
if err != nil && err != sql.ErrNoRows {
|
||||||
slog.Error("WARN:", err)
|
slog.Error(err.Error())
|
||||||
return node, errors.New("Can't get node information")
|
return node, errors.New("Can't get node information")
|
||||||
}
|
}
|
||||||
if err == sql.ErrNoRows {
|
if err == sql.ErrNoRows {
|
||||||
|
|
Loading…
Reference in a new issue