From a69364def9cbbd0dd92fecc436c64358b727ed5d Mon Sep 17 00:00:00 2001 From: terrafrost Date: Wed, 7 Feb 2024 22:42:24 -0600 Subject: [PATCH] SSH2/SFTP: tweak docblock comments for getLastError() / etc --- phpseclib/Net/SFTP.php | 4 ++-- phpseclib/Net/SSH2.php | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index bf7a63aa..451a2cbd 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -3844,7 +3844,7 @@ class Net_SFTP extends Net_SSH2 } /** - * Returns all errors + * Returns all errors on the SFTP layer * * @return array * @access public @@ -3855,7 +3855,7 @@ class Net_SFTP extends Net_SSH2 } /** - * Returns the last error + * Returns the last error on the SFTP layer * * @return string * @access public diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index f6e6a2af..f9fffc30 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -4714,7 +4714,9 @@ class Net_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[] * @access public @@ -4725,7 +4727,9 @@ class Net_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() * * @return string * @access public