summaryrefslogtreecommitdiff
path: root/src/lib/nanomsg.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/nanomsg.cc')
-rw-r--r--src/lib/nanomsg.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/nanomsg.cc b/src/lib/nanomsg.cc
index 61e6c08ce..24b54f93f 100644
--- a/src/lib/nanomsg.cc
+++ b/src/lib/nanomsg.cc
@@ -44,11 +44,11 @@ Nanomsg::Nanomsg (bool server)
}
if (server) {
if ((_endpoint = nn_bind(_socket, NANOMSG_URL)) < 0) {
- throw runtime_error(String::compose("Could not bind nanomsg socket (%1)", errno));
+ throw runtime_error(dcp::compose("Could not bind nanomsg socket (%1)", errno));
}
} else {
if ((_endpoint = nn_connect(_socket, NANOMSG_URL)) < 0) {
- throw runtime_error(String::compose("Could not connect nanomsg socket (%1)", errno));
+ throw runtime_error(dcp::compose("Could not connect nanomsg socket (%1)", errno));
}
}
}
@@ -73,7 +73,7 @@ Nanomsg::send (string s, int timeout)
if (errno == ETIMEDOUT || errno == EAGAIN) {
return false;
}
- throw runtime_error(String::compose("Could not send to nanomsg socket (%1)", errno));
+ throw runtime_error(dcp::compose("Could not send to nanomsg socket (%1)", errno));
} else if (r != int(s.length())) {
throw runtime_error("Could not send to nanomsg socket (message too big)");
}