From 797933d200d597c88f266ada122383925ed455e7 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Sat, 2 Mar 2019 13:12:27 +0100 Subject: ssh_test: improve error reporting --- kpov_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kpov_util.py b/kpov_util.py index 2ebc725..8434f85 100755 --- a/kpov_util.py +++ b/kpov_util.py @@ -36,7 +36,7 @@ def ssh_test(host, user, password, commands=()): except pexpect.exceptions.TIMEOUT as e: results['ssh'] = 'connection to {} as {}/{} failed (timeout)'.format(host, user, password) except Exception as e: - results['ssh'] = str(e) + results['ssh'] = 'connection to {} as {}/{} failed ({})'.format(host, user, password, e) return results def alnum_gen(r, l=1): -- cgit v1.2.1