File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -598,7 +598,7 @@ func getDefaultPort() (port string, err error) {
598
598
}
599
599
600
600
if out .String () == "No Instance(s) Available." {
601
- return "" , errors .New ("unable to locate a USB device to be flashed " )
601
+ return "" , errors .New ("no serial ports available " )
602
602
}
603
603
604
604
for _ , line := range strings .Split (out .String (), "\n " ) {
@@ -609,7 +609,7 @@ func getDefaultPort() (port string, err error) {
609
609
}
610
610
}
611
611
}
612
- return "" , errors .New ("unable to locate a USB device to be flashed " )
612
+ return "" , errors .New ("unable to locate a serial port " )
613
613
default :
614
614
return "" , errors .New ("unable to search for a default USB device to be flashed on this OS" )
615
615
}
@@ -619,7 +619,7 @@ func getDefaultPort() (port string, err error) {
619
619
return "" , err
620
620
}
621
621
if d == nil {
622
- return "" , errors .New ("unable to locate a USB device to be flashed " )
622
+ return "" , errors .New ("unable to locate a serial port " )
623
623
}
624
624
625
625
return d [0 ], nil
You can’t perform that action at this time.
0 commit comments