File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -74,14 +74,14 @@ public static function execute(callable $callback, LoopDriver $driver = null)
74
74
private static function createDriver ()
75
75
{
76
76
if (self ::$ factory === null ) {
77
- throw new \LogicException ("Can't create an event loop driver without a factory. " );
77
+ throw new \LogicException ("No loop driver factory set; Either pass a driver to Loop::execute or set a factory. " );
78
78
}
79
79
80
80
$ driver = self ::$ factory ->create ();
81
81
82
82
if (!$ driver instanceof LoopDriver) {
83
83
$ type = is_object ($ driver ) ? "an instance of " . get_class ($ driver ) : gettype ($ driver );
84
- throw new \LogicException ("Factory returned {$ type }, but must return an instance of LoopDriver. " );
84
+ throw new \LogicException ("Loop driver factory returned {$ type }, but must return an instance of LoopDriver. " );
85
85
}
86
86
87
87
return $ driver ;
You can’t perform that action at this time.
0 commit comments