diff --git a/HISTORY.rst b/HISTORY.rst index a6b76a86..39c5c828 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -10,6 +10,8 @@ Release History * Disable project auto-clean while building/uploading firmware using `platformio run --disable-auto-clean `_ option (`issue #255 `_) +* Show internal errors from "Miniterm" using `platformio serialports monitor `__ command + (`issue #257 `_) * Fixed `platformio serialports monitor --help `__ information with HEX char for hotkeys (`issue #253 `_) * Handle "OSError: [Errno 13] Permission denied" for PlatformIO installer script diff --git a/platformio/commands/serialports.py b/platformio/commands/serialports.py index 33bbe4e6..33dea746 100644 --- a/platformio/commands/serialports.py +++ b/platformio/commands/serialports.py @@ -7,6 +7,7 @@ import sys import click from serial.tools import miniterm +from platformio.exception import PlatformioException from platformio.util import get_serialports @@ -78,5 +79,5 @@ def serialports_monitor(**kwargs): try: miniterm.main() - except: # pylint: disable=W0702 - pass + except Exception as e: # pylint: disable=W0702 + raise PlatformioException(str(e))