From 72b7a8910bdea2fc81a24a99ba53a249f2ec21a5 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 5 Jul 2015 13:29:41 +0100 Subject: [PATCH] Print connection failed messages with a newline Fixes #308 --- src/main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cc b/src/main.cc index d92d1fda..1be088a8 100644 --- a/src/main.cc +++ b/src/main.cc @@ -323,7 +323,7 @@ int run_client(StringView session, StringView init_command) } catch (connection_failed& e) { - write_stderr(e.what()); + write_stderr(format("{}\n", e.what())); return -1; } return 0; @@ -541,7 +541,7 @@ int run_pipe(StringView session) } catch (connection_failed& e) { - write_stderr(e.what()); + write_stderr(format("{}\n", e.what())); return -1; } return 0;