Skip to content

Commit ea4c772

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

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,12 @@ func runUploadCommand(command *cobra.Command, args []string) {
130130
}
131131

132132
msg += "\n"
133-
if platform, errS := core.PlatformSearch(&rpc.PlatformSearchRequest{
133+
if platform, err := core.PlatformSearch(&rpc.PlatformSearchRequest{
134134
Instance: inst,
135135
SearchArgs: platformErr.Platform,
136-
AllVersions: false}); errS != nil {
137-
msg += tr("%v", errS)
136+
AllVersions: false,
137+
}); err != nil {
138+
msg += err.Error()
138139
} else if len(platform.GetSearchOutput()) > 0 {
139140
msg += tr("Try running %s", fmt.Sprintf("`%s core install %s`", version.VersionInfo.Application, platformErr.Platform))
140141
} else {

0 commit comments

Comments
 (0)