Print reporting error

This commit is contained in:
Tomás Senart
2013-08-23 16:17:52 +02:00
parent 9b730ca77a
commit 660f6783d6

View File

@@ -81,7 +81,7 @@ func main() {
log.Println("Done!")
log.Printf("Writing report to '%s'...", *output)
if rep.Report(out) != nil {
log.Println("Failed to report!")
if err = rep.Report(out); err != nil {
log.Printf("Failed to report: %s", err)
}
}