mirror of
https://github.com/golang/go
synced 2024-11-18 13:04:46 -07:00
Fix broken build
Due to copy/paste from Google-internal branch. I can't explain why I didn't test this; sorry. Change-Id: I7b5f083a124c7cfb0fa6cb0506465a36bd79e983 Reviewed-on: https://go-review.googlesource.com/5654 Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
parent
c7a00958ec
commit
b141c84c2e
@ -137,10 +137,10 @@ func main() {
|
|||||||
ptalog = buf
|
ptalog = buf
|
||||||
defer func() {
|
defer func() {
|
||||||
if err := buf.Flush(); err != nil {
|
if err := buf.Flush(); err != nil {
|
||||||
log.Errorf("flush: %s", err)
|
log.Printf("flush: %s", err)
|
||||||
}
|
}
|
||||||
if err := f.Close(); err != nil {
|
if err := f.Close(); err != nil {
|
||||||
log.Errorf("close: %s", err)
|
log.Printf("close: %s", err)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user