summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ssh.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/ssh.py b/ssh.py
index a8242790..54a77304 100644
--- a/ssh.py
+++ b/ssh.py
@@ -57,8 +57,12 @@ def version():
57 except FileNotFoundError: 57 except FileNotFoundError:
58 print("fatal: ssh not installed", file=sys.stderr) 58 print("fatal: ssh not installed", file=sys.stderr)
59 sys.exit(1) 59 sys.exit(1)
60 except subprocess.CalledProcessError: 60 except subprocess.CalledProcessError as e:
61 print("fatal: unable to detect ssh version", file=sys.stderr) 61 print(
62 "fatal: unable to detect ssh version"
63 f" (code={e.returncode}, output={e.stdout})",
64 file=sys.stderr,
65 )
62 sys.exit(1) 66 sys.exit(1)
63 67
64 68