tools: clarify PermissionError in measure-trackpoint-range

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit ac1d5082fe)
This commit is contained in:
Peter Hutterer 2017-11-29 11:31:10 +10:00
parent c863ab5c8e
commit 5cf08e8105

View file

@ -189,7 +189,7 @@ def main(args):
except KeyboardInterrupt:
device.print_summary()
except (PermissionError, OSError):
print("Error: failed to open device")
print("Error: failed to open device. Are you running as root?")
except InvalidDeviceError as e:
print("Error: {}".format(e))