diff options
author | 2018-01-13 11:57:11 -0800 | |
---|---|---|
committer | 2018-01-13 12:22:05 -0800 | |
commit | c4fa14119b3adf467b319b969482a57a4df924f1 (patch) | |
tree | f78a098988e39537fbe46a3854f18fd989b79a31 | |
parent | feat(main): improve flag usuage message (diff) | |
download | bakelite-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.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |