Skip to content

Commit b09a1d8

Browse files
committed
Fix typos
1 parent d19d44a commit b09a1d8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

command/ota/generate.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ var (
2222
}
2323
)
2424

25-
// Generate takes a .bin file and generate a .ota file.
26-
func Generate(binFile, outFile string, fqbn string) error {
25+
// Generate takes a .bin file and generates a .ota file.
26+
func Generate(binFile string, outFile string, fqbn string) error {
2727
productID, ok := fqbnToPID[fqbn]
2828
if !ok {
2929
return errors.New("fqbn not valid")

internal/iot/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func (cl *client) DeviceOTA(id string, file *os.File) error {
9999
}
100100
_, err := cl.api.DevicesV2OtaApi.DevicesV2OtaUpload(cl.ctx, id, file, opt)
101101
if err != nil {
102-
err = fmt.Errorf("listing devices: %w", errorDetail(err))
102+
err = fmt.Errorf("uploading device ota: %w", errorDetail(err))
103103
return err
104104
}
105105
return nil

0 commit comments

Comments
 (0)