filerepo: fix return type of FileRepo::streamFileWithStatus()

Change-Id: Ibb4610630203e22d921189699f6c51298212d5d3
This commit is contained in:
Aaron Schulz 2019-04-19 20:13:49 -07:00 committed by Umherirrender
parent 196da35474
commit 84fbe50b53

View file

@ -202,7 +202,8 @@ abstract class MediaTransformOutput {
return Status::newFatal( 'backend-fail-stream', '<no path>' );
} elseif ( FileBackend::isStoragePath( $this->path ) ) {
$be = $this->file->getRepo()->getBackend();
return $be->streamFile( [ 'src' => $this->path, 'headers' => $headers ] );
return Status::wrap(
$be->streamFile( [ 'src' => $this->path, 'headers' => $headers ] ) );
} else { // FS-file
$success = StreamFile::stream( $this->getLocalCopyPath(), $headers );
return $success ? Status::newGood() : Status::newFatal( 'backend-fail-stream', $this->path );