mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 09:50:08 +01:00
Use Errorf when using formatting directives.
Found by go vet.
This commit is contained in:
parent
8f748615d4
commit
8774a77d33
@ -401,7 +401,7 @@ func (a *AddrManager) savePeers() {
|
|||||||
|
|
||||||
w, err := os.Create(a.peersFile)
|
w, err := os.Create(a.peersFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("Error opening file %s: %v", a.peersFile, err)
|
log.Errorf("Error opening file %s: %v", a.peersFile, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
enc := json.NewEncoder(w)
|
enc := json.NewEncoder(w)
|
||||||
|
Loading…
Reference in New Issue
Block a user