Skip to content

Commit c4fb3ac

Browse files
committed
Merge branch 'MAGETWO-44274' into 'master3'
Fix bug: Couldn't retrive a remote preview image file. See merge request !150
2 parents ef08b13 + fe6af12 commit c4fb3ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/ProductVideo/Controller/Adminhtml/Product/Gallery/RetrieveImage.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ protected function retrieveRemoteImage($fileUrl, $localFilePath)
132132
$this->curl->write('GET', $fileUrl);
133133
$image = $this->curl->read();
134134
if (empty($image)) {
135-
throw new \InvalidArgumentException(__('Couldn\'t retrive a remote preview image file. Service is inaccessible.'));
135+
throw new \Magento\Framework\Exception\LocalizedException(
136+
__('Could not get video information. Please check your connection and try again.')
137+
);
136138
}
137139
$this->fileUtility->saveFile($localFilePath, $image);
138140
}

0 commit comments

Comments
 (0)