Skip to content

Commit

Permalink
tools: clarify PermissionError in measure-trackpoint-range
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit ac1d508)
  • Loading branch information
whot committed Dec 14, 2017
1 parent c863ab5 commit 5cf08e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/libinput-measure-trackpoint-range
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 5cf08e8

Please sign in to comment.