summaryrefslogtreecommitdiff
path: root/src/socketengines/socketengine_pipe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/socketengines/socketengine_pipe.cpp')
-rw-r--r--src/socketengines/socketengine_pipe.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socketengines/socketengine_pipe.cpp b/src/socketengines/socketengine_pipe.cpp
index 0b319f0b0..b0be664c8 100644
--- a/src/socketengines/socketengine_pipe.cpp
+++ b/src/socketengines/socketengine_pipe.cpp
@@ -17,7 +17,7 @@ Pipe::Pipe() : Socket()
{
int fds[2];
if (pipe(fds))
- throw CoreException(Anope::string("Could not create pipe: ") + strerror(errno));
+ throw CoreException(Anope::string("Could not create pipe: ") + Anope::LastError());
int flags = fcntl(fds[0], F_GETFL, 0);
fcntl(fds[0], F_SETFL, flags | O_NONBLOCK);
flags = fcntl(fds[1], F_GETFL, 0);