cmd/bench: try to print results even if there's an error running sweet

Currently if sweet fails partway through, we lose any results it
generated. Instead, try to dump results and overwrite whatever errors
are encountered with a sweet error, if there was one.

Change-Id: I934b41144bb67e169074cdf484b0f4e2609c6a8e
Reviewed-on: https://go-review.googlesource.com/c/benchmarks/+/384515
Reviewed-by: Michael Pratt <mpratt@google.com>
Trust: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
1 file changed