Commit 9b3b934d authored by Guillaume Seguin's avatar Guillaume Seguin

Typo & cleaner exception printing

parent 4516ac6c
...@@ -1540,12 +1540,12 @@ class PronterWindow(MainWindow, pronsole.pronsole): ...@@ -1540,12 +1540,12 @@ class PronterWindow(MainWindow, pronsole.pronsole):
except SerialException as e: except SerialException as e:
# Currently, there is no errno, but it should be there in the future # Currently, there is no errno, but it should be there in the future
if e.errno == 2: if e.errno == 2:
print _("Error: You are trying to connect to a non-exisiting port.") print _("Error: You are trying to connect to a non-existing port.")
elif e.errno == 8: elif e.errno == 8:
print _("Error: You don't have permission to open %s.") % port print _("Error: You don't have permission to open %s.") % port
print _("You might need to add yourself to the dialout group.") print _("You might need to add yourself to the dialout group.")
else: else:
print e traceback.print_exc()
# Kill the scope anyway # Kill the scope anyway
return return
self.statuscheck = True self.statuscheck = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment