summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2019-03-02 13:12:27 +0100
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2019-03-02 13:12:27 +0100
commit797933d200d597c88f266ada122383925ed455e7 (patch)
tree2311ab0ff9ccf0d04dd8b7163a9e6c60df15a477
parent97cefa0d20194a29354c65593d4ebeb86ab97387 (diff)
ssh_test: improve error reporting
-rwxr-xr-xkpov_util.py2
1 files changed, 1 insertions, 1 deletions
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):