Skip to content

Better serial/port error message #48

Description

@nofxx

In a first use, lost some minutes figuring out this error... Thought it was some OS issue.

Traceback (most recent call last):
  File "/usr/bin/luatool.py", line 192, in <module>
    transport = decidetransport(args)
  File "/usr/bin/luatool.py", line 168, in decidetransport
    return SerialTransport(cliargs.port, cliargs.baud, cliargs.delay)
  File "/usr/bin/luatool.py", line 97, in __init__
    raise TransportError(e.strerror)
__main__.TransportError

Suggestion:

NO TTY: Please provide --port. Eg: /dev/ttyUSB*

PS.: A nice bet to detect tty is check for platform, linux: /dev/ttyUSB* mac: /dev/tty.usbmodel*
Thanks for the gem!
PS2: Thank you for this, great tool!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions