1
0
Fork 0

Clarify exception message when an empty response is returned

pull/1812/merge
Jordi Boggiano 2013-04-29 17:15:55 +02:00
parent 5264d0637b
commit 81f1451118
1 changed files with 4 additions and 0 deletions

View File

@ -172,6 +172,10 @@ class RemoteFilesystem
// handle copy command if download was successful
if (false !== $result && null !== $fileName) {
if ('' === $result) {
throw new TransportException('"'.$this->fileUrl.'" appears broken, and returned an empty 200 response');
}
$errorMessage = '';
set_error_handler(function ($code, $msg) use (&$errorMessage) {
if ($errorMessage) {