summaryrefslogtreecommitdiff
path: root/src/remote.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-06-01 19:06:35 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-06-01 19:06:35 +0100
commitf19bb4fe6d1de14f9539768ad9a67391fc52ed87 (patch)
tree54ff5c0da1702afb910abe6d341b9e66f5f65cbd /src/remote.cc
parent57a03d84955a3811a029f7190b00f50b00af5521 (diff)
Port more code to use the format function instead of adhoc string concat
Diffstat (limited to 'src/remote.cc')
-rw-r--r--src/remote.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remote.cc b/src/remote.cc
index 94cdd6c4..05da041c 100644
--- a/src/remote.cc
+++ b/src/remote.cc
@@ -624,10 +624,10 @@ Server::Server(String session_name)
sockaddr_un addr = session_addr(m_session);
if (bind(listen_sock, (sockaddr*) &addr, sizeof(sockaddr_un)) == -1)
- throw runtime_error("unable to bind listen socket "_str + addr.sun_path);
+ throw runtime_error(format("unable to bind listen socket '{}'", addr.sun_path));
if (listen(listen_sock, 4) == -1)
- throw runtime_error("unable to listen on socket "_str + addr.sun_path);
+ throw runtime_error(format("unable to listen on socket '{}'", addr.sun_path));
auto accepter = [this](FDWatcher& watcher, EventMode mode) {
sockaddr_un client_addr;