[
https://issues.apache.org/jira/browse/BEAM-6325?focusedWorklogId=179523&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-179523
]
ASF GitHub Bot logged work on BEAM-6325:
----------------------------------------
Author: ASF GitHub Bot
Created on: 28/Dec/18 16:56
Start Date: 28/Dec/18 16:56
Worklog Time Spent: 10m
Work Description: lostluck commented on issue #7375: [BEAM-6325] Cast
cross compile output from []byte to string for printing
URL: https://github.com/apache/beam/pull/7375#issuecomment-450391261
R: @apilloud
----------------------------------------------------------------
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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 179523)
Time Spent: 20m (was: 10m)
> 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: 20m
> 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)