Use Errorf when using formatting directives.

Found by go vet.
This commit is contained in:
David Hill 2014-08-28 11:49:49 -04:00
parent 8f748615d4
commit 8774a77d33

View File

@ -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)