summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2016-12-20 20:15:54 +0000
committerMaxime Coste <mawww@kakoune.org>2016-12-20 20:15:54 +0000
commit3a6167ae626a27d8920e0596065c29450461b3ad (patch)
tree8c1bdd6c814508df6843d85af189cc65f6f4f93b /src
parent0daf7af493fa7a2e3fb48144cce42a959c09ff35 (diff)
parent0a21426d58056596940fa2e25e3a84d908d7d1df (diff)
Merge branch 'master' of git://github.com/akkartik/kakoune
Diffstat (limited to 'src')
-rw-r--r--src/main.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc
index e1528d03..cc27f953 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;