From a7f44211df3bd50bbbe82ff7d9b8a9178448507c Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 15 Feb 2019 10:18:28 +1000 Subject: [PATCH] tools: print the error message if we fail to connect to ratbagd Signed-off-by: Peter Hutterer --- tools/ratbagctl.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ratbagctl.in b/tools/ratbagctl.in index 40ab24c1..91d2e628 100755 --- a/tools/ratbagctl.in +++ b/tools/ratbagctl.in @@ -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: