mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-11 16:49:42 +01:00
Merge pull request #1909 from browner12/AB-fputs-failure-message
(3.0 branch) update exception message
This commit is contained in:
commit
21db83aeb7
@ -4266,7 +4266,8 @@ class SSH2
|
|||||||
|
|
||||||
if (strlen($packet) != $sent) {
|
if (strlen($packet) != $sent) {
|
||||||
$this->bitmap = 0;
|
$this->bitmap = 0;
|
||||||
throw new \RuntimeException("Only $sent of " . strlen($packet) . " bytes were sent");
|
$message = $sent === false ? ('Unable to write ' . strlen($packet) . ' bytes') : ("Only $sent of " . strlen($packet) . " bytes were sent");
|
||||||
|
throw new \RuntimeException($message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user