mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-06-13 13:52:24 +00: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) {
|
||||
$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