Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f8b42e commit ee18da7Copy full SHA for ee18da7
src/Symfony/Component/Mailer/Transport/Smtp/Stream/ProcessStream.php
@@ -57,11 +57,15 @@ public function terminate(): void
57
$err = stream_get_contents($this->err);
58
fclose($this->err);
59
if (0 !== $exitCode = proc_close($this->stream)) {
60
- throw new TransportException('Process failed with exit code '.$exitCode.': '.$out.$err);
+ $errorMessage = 'Process failed with exit code '.$exitCode.': '.$out.$err;
61
}
62
63
64
parent::terminate();
65
+
66
+ if (isset($errorMessage)) {
67
+ throw new TransportException($errorMessage);
68
+ }
69
70
71
protected function getReadConnectionDescription(): string
0 commit comments