File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 18
18
package ota
19
19
20
20
import (
21
+ "fmt"
21
22
"os"
22
23
"sort"
23
24
"strings"
@@ -95,10 +96,11 @@ func runMassUploadCommand(cmd *cobra.Command, args []string) {
95
96
if len (failed ) == 0 {
96
97
return
97
98
}
98
- failStr := strings .Join (failed , "," )
99
+ failDevs := strings .Join (failed , "," )
99
100
feedback .Printf (
100
101
"You can try to perform the OTA again on the failed devices using the following command:\n " +
101
- "$ arduino-cloud-cli ota upload --file %s -d %s" , params .File , failStr ,
102
+ "$ arduino-cloud-cli ota mass-upload --file %s --fqbn %s -d %s" ,
103
+ params .File , params .FQBN , failDevs ,
102
104
)
103
105
}
104
106
@@ -119,7 +121,7 @@ func (r massUploadResult) String() string {
119
121
for _ , r := range r .res {
120
122
outcome := "Success"
121
123
if r .Err != nil {
122
- outcome = r .Err .Error ()
124
+ outcome = fmt . Sprintf ( "Fail: %s" , r .Err .Error () )
123
125
}
124
126
125
127
t .AddRow (
You can’t perform that action at this time.
0 commit comments