Show internal errors from "Miniterm" using "platformio serialports monitor" command // Resolve #257

This commit is contained in:
Ivan Kravets
2015-07-30 18:07:26 +03:00
parent 5761cea47e
commit 59505cb8f3
2 changed files with 5 additions and 2 deletions

View File

@@ -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

View File

@@ -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))