/** * @param SftpAdapter $adapter * * @return string */ protected function getLastError(AdapterInterface $adapter) { return $adapter->getConnection()->getLastSFTPError(); }