[ 
https://issues.apache.org/jira/browse/BEAM-6325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Burke resolved BEAM-6325.
--------------------------------
       Resolution: Fixed
    Fix Version/s: Not applicable

Thanks for the notice. Casting to string added for the out.

> 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
>             Fix For: Not applicable
>
>          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)

Reply via email to