mirror of
https://github.com/platformio/platformio-core.git
synced 2025-08-01 19:04:29 +02:00
Show internal errors from "Miniterm" using "platformio serialports monitor" command // Resolve #257
This commit is contained in:
@@ -10,6 +10,8 @@ Release History
|
|||||||
* Disable project auto-clean while building/uploading firmware using
|
* Disable project auto-clean while building/uploading firmware using
|
||||||
`platformio run --disable-auto-clean <http://docs.platformio.org/en/latest/userguide/cmd_run.html#cmdoption--disable-auto-clean>`_ option
|
`platformio run --disable-auto-clean <http://docs.platformio.org/en/latest/userguide/cmd_run.html#cmdoption--disable-auto-clean>`_ option
|
||||||
(`issue #255 <https://github.com/platformio/platformio/issues/255>`_)
|
(`issue #255 <https://github.com/platformio/platformio/issues/255>`_)
|
||||||
|
* Show internal errors from "Miniterm" using `platformio serialports monitor <http://docs.platformio.org/en/latest/userguide/cmd_serialports.html#platformio-serialports-monitor>`__ command
|
||||||
|
(`issue #257 <https://github.com/platformio/platformio/issues/257>`_)
|
||||||
* Fixed `platformio serialports monitor --help <http://docs.platformio.org/en/latest/userguide/cmd_serialports.html#platformio-serialports-monitor>`__ information with HEX char for hotkeys
|
* Fixed `platformio serialports monitor --help <http://docs.platformio.org/en/latest/userguide/cmd_serialports.html#platformio-serialports-monitor>`__ information with HEX char for hotkeys
|
||||||
(`issue #253 <https://github.com/platformio/platformio/issues/253>`_)
|
(`issue #253 <https://github.com/platformio/platformio/issues/253>`_)
|
||||||
* Handle "OSError: [Errno 13] Permission denied" for PlatformIO installer script
|
* Handle "OSError: [Errno 13] Permission denied" for PlatformIO installer script
|
||||||
|
@@ -7,6 +7,7 @@ import sys
|
|||||||
import click
|
import click
|
||||||
from serial.tools import miniterm
|
from serial.tools import miniterm
|
||||||
|
|
||||||
|
from platformio.exception import PlatformioException
|
||||||
from platformio.util import get_serialports
|
from platformio.util import get_serialports
|
||||||
|
|
||||||
|
|
||||||
@@ -78,5 +79,5 @@ def serialports_monitor(**kwargs):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
miniterm.main()
|
miniterm.main()
|
||||||
except: # pylint: disable=W0702
|
except Exception as e: # pylint: disable=W0702
|
||||||
pass
|
raise PlatformioException(str(e))
|
||||||
|
Reference in New Issue
Block a user