summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-07-05 13:29:41 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-07-05 13:39:30 +0100
commit72b7a8910bdea2fc81a24a99ba53a249f2ec21a5 (patch)
tree039512826292e30f54b92c5101b375c596697fb5 /src
parent93b6534ef188dba78f642ec90bfed47ec82b8653 (diff)
Print connection failed messages with a newline
Fixes #308
Diffstat (limited to 'src')
-rw-r--r--src/main.cc4
1 files 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;