Log exception on error while reading from serial

This commit is contained in:
Gina Häußge committed 2015-08-13 12:05:08 +02:00
1 parent 91539624df
commit ac3409a223
1 file changed
+2 -1
+2 -1
View File
@@ -1373,7 +1373,8 @@ class MachineCom(object):
try:
ret = self._serial.readline()
except:
self._log("Unexpected error while reading serial port: %s" % (get_exception_string()))
self._logger.exception("Unexpected error while reading from serial port")
self._log("Unexpected error while reading serial port, please consult octoprint.log for details: %s" % (get_exception_string()))
self._errorValue = get_exception_string()
self.close(is_error=True)
return None