Skip to content

Commit

Permalink
Update FtpAdapter.php
Browse files Browse the repository at this point in the history
Add last error to readStream
  • Loading branch information
AliAzizi authored and frankdejonge committed Jan 15, 2022
1 parent 33d6a63 commit a87eba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ftp/FtpAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a87eba6

Please sign in to comment.