Skip to content

Commit

Permalink
print out the error info when errno available
Browse files Browse the repository at this point in the history
  • Loading branch information
raggi committed Jun 30, 2010
1 parent ce98299 commit 122fcc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/em.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ void EventMachine_t::_InitializeLoopBreaker()
#ifdef OS_UNIX
int fd[2];
if (pipe (fd))
throw std::runtime_error ("no loop breaker");
throw std::runtime_error (std::strerror(errno));

LoopBreakerWriter = fd[1];
LoopBreakerReader = fd[0];
Expand Down

0 comments on commit 122fcc3

Please sign in to comment.