summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/src/journal_commit.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/src/journal_commit.cc b/server/src/journal_commit.cc
index ce344c4..0c1a93d 100644
--- a/server/src/journal_commit.cc
+++ b/server/src/journal_commit.cc
@@ -109,8 +109,7 @@ int journal_commit(const char *cpr, const char *user,
}
if(connect(sock, (struct sockaddr *) &sin, sizeof(sin)) < 0) {
- ERR_LOG(journal, "Connect() failed!\n");
- perror(":");
+ ERR_LOG(journal, "Connect() failed: %s!\n", strerror(errno));
return -1;
}
#else