diff --git a/robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py b/robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py index 351f130..4fd3646 100755 --- a/robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py +++ b/robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py @@ -26,10 +26,14 @@ logging.info("Logging system active") datafeed = selectserial() if type(datafeed) is str: - easygui.msgbox("Failed to open serial port:\n" + datafeed, "Fatal error") + message = "Failed to open serial port:\n" + datafeed + easygui.msgbox(message, "Fatal error") + logging.critical(message) sys.exit() elif datafeed == None: - easygui.msgbox("Failed to open serial port for unknown reason!", "Fatal error") + message = "Failed to open serial port for unknown reason!" + easygui.msgbox(message, "Fatal error") + logging.critical(message) sys.exit() if platform.system()=='Windows': #easier than passing vars -- libgit2 0.21.2