tools: print the error message if we fail to connect to ratbagd

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2019-02-15 10:18:28 +10:00
parent a3466f0e99
commit a7f44211df

View File

@@ -1523,8 +1523,8 @@ def open_ratbagd(ratbagd_process=None, verbose=0):
try:
r = Ratbagd()
r.verbose = verbose
except RatbagdUnavailable:
print("Unable to connect to ratbagd")
except RatbagdUnavailable as e:
print("Unable to connect to ratbagd: {}".format(e))
return None
if ratbagd_process is not None: