summaryrefslogtreecommitdiff
path: root/lib/Socket.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Socket.cc')
-rw-r--r--lib/Socket.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Socket.cc b/lib/Socket.cc
index f35bb72..aada133 100644
--- a/lib/Socket.cc
+++ b/lib/Socket.cc
@@ -15,7 +15,7 @@
Socket::Socket() throw (GeneralException) : Handle(socket(AF_INET, SOCK_STREAM, 0)), connected(false), listening(false) {
if (GetHandle() < 0) {
- throw GeneralException("Error creating socket.");
+ throw GeneralException(_("Error creating socket."));
}
}
@@ -117,7 +117,7 @@ Socket Socket::Accept(void) throw (GeneralException) {
int h;
if ((h = accept(GetHandle(), &inaddr, &inlen)) < 0) {
- throw GeneralException("Failed accepting.");
+ throw GeneralException(_("Failed accepting."));
} else {
return Socket(h);
}