We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23f8603 commit 17430ceCopy full SHA for 17430ce
internal/cli/compile/compile.go
@@ -365,11 +365,12 @@ func runCompileCommand(cmd *cobra.Command, args []string) {
365
if profileArg.String() == "" {
366
res.Error += fmt.Sprintln()
367
368
- if platform, errS := core.PlatformSearch(&rpc.PlatformSearchRequest{
+ if platform, err := core.PlatformSearch(&rpc.PlatformSearchRequest{
369
Instance: inst,
370
SearchArgs: platformErr.Platform,
371
- AllVersions: false}); errS != nil {
372
- res.Error += tr("%v", errS)
+ AllVersions: false,
+ }); err != nil {
373
+ res.Error += err.Error()
374
} else if len(platform.GetSearchOutput()) > 0 {
375
suggestion := fmt.Sprintf("`%s core install %s`", version.VersionInfo.Application, platformErr.Platform)
376
res.Error += tr("Try running %s", suggestion)
0 commit comments