protected function getLastError(AdapterInterface $adapter) { return $adapter->getConnection()->getLastSFTPError(); }