[ https://issues.apache.org/jira/browse/BEAM-6325?focusedWorklogId=179584&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-179584 ]
ASF GitHub Bot logged work on BEAM-6325: ---------------------------------------- Author: ASF GitHub Bot Created on: 28/Dec/18 22:17 Start Date: 28/Dec/18 22:17 Worklog Time Spent: 10m Work Description: apilloud commented on pull request #7375: [BEAM-6325] Cast cross compile output from []byte to string for printing URL: https://github.com/apache/beam/pull/7375 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 179584) Time Spent: 40m (was: 0.5h) > Error message is printed as bytes when failing to cross-compile > --------------------------------------------------------------- > > Key: BEAM-6325 > URL: https://issues.apache.org/jira/browse/BEAM-6325 > Project: Beam > Issue Type: Bug > Components: sdk-go > Reporter: Ivar Gaitan > Assignee: Robert Burke > Priority: Minor > Time Spent: 40m > Remaining Estimate: 0h > > In {{beam/runners/universal/runnerlib/compile.go}}: > If cross-compile fails in {{BuildWorkerBinary()}} the error message is > printed as bytes. This is because {{Cmd.CombinedOutput()}} returns a byte > slice as its output, which is then formatted as it's default value. > {{if out, err := cmd.CombinedOutput(); err != nil {}} > {{ return fmt.Errorf("failed to cross-compile %v: %v\n%v", program, err, > out)}} -- This message was sent by Atlassian JIRA (v7.6.3#76005)