distinguish unknown error from stderr

This commit is contained in:
Robin Appelman 2022-05-20 16:26:21 +02:00
commit 84356e5785

View file

@ -99,7 +99,7 @@ class Connection extends RawConnection {
} else { } else {
$error = $this->readError(); // maybe something on stderr $error = $this->readError(); // maybe something on stderr
if ($error) { if ($error) {
throw new ConnectException('Unknown error (' . $error . ')'); throw new ConnectException('Unknown error (stderr: ' . $error . ')');
} else { } else {
throw new ConnectException('Unknown error'); throw new ConnectException('Unknown error');
} }