Use Errorf when using formatting directives.
Found by go vet.
This commit is contained in:
parent
8f748615d4
commit
8774a77d33
1 changed files with 1 additions and 1 deletions
|
@ -401,7 +401,7 @@ func (a *AddrManager) savePeers() {
|
|||
|
||||
w, err := os.Create(a.peersFile)
|
||||
if err != nil {
|
||||
log.Error("Error opening file %s: %v", a.peersFile, err)
|
||||
log.Errorf("Error opening file %s: %v", a.peersFile, err)
|
||||
return
|
||||
}
|
||||
enc := json.NewEncoder(w)
|
||||
|
|
Loading…
Reference in a new issue