-
-
Save anonymous/cc76e0ec40c31045d43a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/Mojo/IOLoop.pm b/lib/Mojo/IOLoop.pm | |
index 118bd05..04b355e 100644 | |
--- a/lib/Mojo/IOLoop.pm | |
+++ b/lib/Mojo/IOLoop.pm | |
@@ -71,7 +71,7 @@ sub client { | |
$client->on( | |
error => sub { | |
$self->_remove($id); | |
- $self->$cb(pop, undef); | |
+ $self->$cb(pop || 'Unknown error', undef); | |
} | |
); | |
$client->connect(@_); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment