diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index c3462aa2..cad3dc33 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -3064,7 +3064,7 @@ class SFTP extends SSH2 } /** - * Returns all errors + * Returns all errors on the SFTP layer */ public function getSFTPErrors(): array { @@ -3072,7 +3072,7 @@ class SFTP extends SSH2 } /** - * Returns the last error + * Returns the last error on the SFTP layer */ public function getLastSFTPError(): string { diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 3953a77f..dfe7a39d 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -4334,7 +4334,9 @@ class SSH2 } /** - * Returns all errors + * Returns all errors / debug messages on the SSH layer + * + * If you are looking for messages from the SFTP layer, please see SFTP::getSFTPErrors() * * @return string[] */ @@ -4344,7 +4346,9 @@ class SSH2 } /** - * Returns the last error + * Returns the last error received on the SSH layer + * + * If you are looking for messages from the SFTP layer, please see SFTP::getLastSFTPError() */ public function getLastError(): string {