From c4fa14119b3adf467b319b969482a57a4df924f1 Mon Sep 17 00:00:00 2001 From: Terin Stock Date: Sat, 13 Jan 2018 11:57:11 -0800 Subject: fix(main): include platform in error messages Include platform information in error messages so that builds may be attributed to a specific platform. Bug: #1 --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index e1ed076..428946f 100644 --- a/main.go +++ b/main.go @@ -210,7 +210,7 @@ func build(ctx context.Context, platform Platform, pkg string) error { err := cmd.Run() if err != nil { - log.Printf("fatal: There was an error! err='%s' stdout='%s' stderr='%s'", err, stdout.String(), stderr.String()) + log.Printf("fatal: There was an error! goos='%s' goarch='%s' err='%s' stdout='%s' stderr='%s'", platform.OS, platform.Arch, err, stdout.String(), stderr.String()) } return err -- cgit 1.4.1