diff --git a/src/Ftp/FtpAdapter.php b/src/Ftp/FtpAdapter.php index 976fa3841..bef0292ed 100644 --- a/src/Ftp/FtpAdapter.php +++ b/src/Ftp/FtpAdapter.php @@ -201,7 +201,7 @@ public function readStream(string $path) if ( ! $result) { fclose($stream); - throw UnableToReadFile::fromLocation($path); + throw UnableToReadFile::fromLocation($path, error_get_last()['message'] ?? ''); } rewind($stream);