aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Terin Stock <terinjokes@gmail.com>2018-01-13 11:57:11 -0800
committerLibravatar Terin Stock <terinjokes@gmail.com>2018-01-13 12:22:05 -0800
commitc4fa14119b3adf467b319b969482a57a4df924f1 (patch)
treef78a098988e39537fbe46a3854f18fd989b79a31
parentfeat(main): improve flag usuage message (diff)
downloadbakelite-c4fa14119b3adf467b319b969482a57a4df924f1.tar.xz
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
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
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