tools: clarify PermissionError in measure-trackpoint-range
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 29 Nov 2017 01:31:10 +0000 (11:31 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 14 Dec 2017 05:50:03 +0000 (15:50 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit ac1d5082fe87c52420720ca46b7862a214c61618)

tools/libinput-measure-trackpoint-range

index 512978c04074eb4844016a6478f95d3e8cc93d21..40403616868320b9aa338030ec3434f94775cf1f 100755 (executable)
@@ -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))