main: fix error message when a serial port can't be accessed
Old message: error: failed to reset port /tmp/tinygo1441085170/main.uf2: opening port: Permission denied new message: error: failed to reset port /dev/ttyACM0: opening port: Permission denied
Этот коммит содержится в:
родитель
2b04006b1e
коммит
c32490935b
1 изменённых файлов: 1 добавлений и 1 удалений
2
main.go
2
main.go
|
@ -401,7 +401,7 @@ func Flash(pkgName, port string, options *compileopts.Options) error {
|
|||
if err == nil {
|
||||
err = touchSerialPortAt1200bps(port)
|
||||
if err != nil {
|
||||
return &commandError{"failed to reset port", result.Binary, err}
|
||||
return &commandError{"failed to reset port", port, err}
|
||||
}
|
||||
// give the target MCU a chance to restart into bootloader
|
||||
time.Sleep(3 * time.Second)
|
||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче