Skip to content

Commit d3f36e4

Browse files
committed
Fixed regression
1 parent c374f93 commit d3f36e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cli/lib/download.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package lib
1919

2020
import (
2121
"context"
22+
"os"
2223

2324
"github.com/arduino/arduino-cli/common/formatter"
2425

@@ -57,6 +58,7 @@ func runDownloadCommand(cmd *cobra.Command, args []string) {
5758
}, cli.OutputProgressBar())
5859
if err != nil {
5960
formatter.PrintError(err, "Error downloading "+library.String())
61+
os.Exit(cli.ErrNetwork)
6062
}
6163
}
6264
}

0 commit comments

Comments
 (0)