From 0a21426d58056596940fa2e25e3a84d908d7d1df Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 20 Dec 2016 10:11:13 -0800 Subject: [PATCH] Remain silent on exit without error. --- src/main.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cc b/src/main.cc index 1af54935..c9a17c8c 100644 --- a/src/main.cc +++ b/src/main.cc @@ -466,7 +466,8 @@ int run_client(StringView session, StringView init_cmds, UIType ui_type) } catch (disconnected& e) { - write_stderr(format("{}\ndisconnecting\n", e.what())); + if (!e.m_graceful) + write_stderr(format("{}\ndisconnecting\n", e.what())); return e.m_graceful ? 0 : -1; } return 0;