Remain silent on exit without error.

This commit is contained in:
Kartik K. Agaram 2016-12-20 10:11:13 -08:00
parent 26e1caef7b
commit 0a21426d58

View File

@ -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;