Skip to content

Commit

Permalink
fix(main): include platform in error messages
Browse files Browse the repository at this point in the history
Include platform information in error messages so that builds may be
attributed to a specific platform.

Bug: #1
  • Loading branch information
terinjokes committed Jan 13, 2018
1 parent 06a5b3e commit c4fa141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c4fa141

Please sign in to comment.