From 2168115b0616155393de2615cd7ba66314b18437 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Sat, 24 Feb 2018 21:23:47 +0200 Subject: [PATCH] ssh: fixup small refactoring bug --- libagent/ssh/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libagent/ssh/__init__.py b/libagent/ssh/__init__.py index 2bce4ed..e378533 100644 --- a/libagent/ssh/__init__.py +++ b/libagent/ssh/__init__.py @@ -217,8 +217,8 @@ def _get_sock_path(args): sock_path = args.sock_path if not sock_path: if args.foreground: - log.error('running in foreground mode requires UNIX socket path') - return 1 + log.error('running in foreground mode requires specifying UNIX socket path') + sys.exit(1) else: sock_path = tempfile.mktemp(prefix='trezor-ssh-agent-') return sock_path