- $errorStr = "Fetching thumbnail failed: " . print_r( $errors, 1 );
- $errorStr .= "\nurl = $scalerThumbUrl\n";
- throw new MWException( $errorStr );
+ throw new UploadStashFileNotFoundException(
+ wfMessage(
+ 'uploadstash-file-not-found-no-remote-thumb',
+ print_r( $errors, 1 ),
+ $scalerThumbUrl
+ )
+ );