Skip to content

Commit eb07e84

Browse files
authored
Merge pull request #376 from arduino/better_error
Make sure we don't lose an error
2 parents cb014fd + ad820d4 commit eb07e84

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

upload/upload.go

+3
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,9 @@ func program(binary string, args []string, l Logger) error {
301301
info(l, "Flashing with command:"+binary+extension+" "+strings.Join(args, " "))
302302

303303
err = cmd.Start()
304+
if err != nil {
305+
return errors.Wrapf(err, "Start command")
306+
}
304307

305308
stdoutCopy := bufio.NewScanner(stdout)
306309
stderrCopy := bufio.NewScanner(stderr)

0 commit comments

Comments
 (0)