Skip to content

Commit 17430ce

Browse files
Update internal/cli/compile/compile.go
Co-authored-by: Cristian Maglie <[email protected]>
1 parent 23f8603 commit 17430ce

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: internal/cli/compile/compile.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -365,11 +365,12 @@ func runCompileCommand(cmd *cobra.Command, args []string) {
365365
if profileArg.String() == "" {
366366
res.Error += fmt.Sprintln()
367367

368-
if platform, errS := core.PlatformSearch(&rpc.PlatformSearchRequest{
368+
if platform, err := core.PlatformSearch(&rpc.PlatformSearchRequest{
369369
Instance: inst,
370370
SearchArgs: platformErr.Platform,
371-
AllVersions: false}); errS != nil {
372-
res.Error += tr("%v", errS)
371+
AllVersions: false,
372+
}); err != nil {
373+
res.Error += err.Error()
373374
} else if len(platform.GetSearchOutput()) > 0 {
374375
suggestion := fmt.Sprintf("`%s core install %s`", version.VersionInfo.Application, platformErr.Platform)
375376
res.Error += tr("Try running %s", suggestion)

0 commit comments

Comments
 (0)