mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
tools: print a nice error when we don't have the required capabilities
Fixes #583 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
committed by
Benjamin Tissoires
parent
1586913fc7
commit
16e052d846
@@ -1562,7 +1562,10 @@ def main(argv):
|
||||
parser.print_help()
|
||||
return
|
||||
else:
|
||||
f(r, cmd)
|
||||
try:
|
||||
f(r, cmd)
|
||||
except RatbagErrorCapability as e:
|
||||
print("Error: {}".format(e), file=sys.stderr)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user