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 @@ -142,7 +142,7 @@ public function flush()
142142 try {
143143 $ promises [] = $ this ->httpClient ->sendAsyncRequest ($ proxyRequest );
144144 } catch (\Exception $ e ) {
145- $ exceptions ->add (new InvalidArgumentException ($ e ));
145+ $ exceptions ->add (new InvalidArgumentException ($ e-> getMessage (), $ e -> getCode (), $ e ));
146146 }
147147 }
148148 }
@@ -156,7 +156,7 @@ public function flush()
156156 $ exceptions ->add (ProxyUnreachableException::proxyUnreachable ($ exception ));
157157 } catch (\Exception $ exception ) {
158158 // @codeCoverageIgnoreStart
159- $ exceptions ->add (new InvalidArgumentException ($ exception ));
159+ $ exceptions ->add (new InvalidArgumentException ($ exception-> getMessage (), $ exception -> getCode (), $ exception ));
160160 // @codeCoverageIgnoreEnd
161161 }
162162 }
You can’t perform that action at this time.
0 commit comments