Skip to content

Commit

Permalink
fix panic when cannot download FirmwareIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
umbynos committed Feb 1, 2022
1 parent c061e88 commit 1a77a29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli/firmware/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ package firmware
import (
"os"

"github.com/arduino/arduino-cli/cli/errorcodes"
"github.com/arduino/arduino-cli/cli/feedback"
"github.com/arduino/arduino-cli/table"
"github.com/arduino/arduino-fwuploader/indexes"
Expand Down Expand Up @@ -59,6 +60,7 @@ func list(fqbn string) {
firmwareIndex, err := indexes.GetFirmwareIndex()
if err != nil {
feedback.Error(err)
os.Exit(errorcodes.ErrGeneric)
}

res := FirmwareListResult{}
Expand Down

0 comments on commit 1a77a29

Please sign in to comment.