[Embed] Fix bug where we we're losing track of a file, in case the image needed to be reencoded

This commit is contained in:
Miguel Dantas 2019-07-15 00:03:56 +01:00 committed by Diogo Cordeiro
parent 22c8c96249
commit c9379b3608

View File

@ -549,8 +549,10 @@ class EmbedPlugin extends Plugin
}
} else {
throw new AlreadyFulfilledException('A thumbnail seems to already exist for remote file with id==' .
$thumbnail->file_id);
$thumbnail->file_id . ' at path ' . $fullpath);
}
} catch (AlreadyFulfilledException $e) {
// Carry on
} catch (Exception $err) {
common_log(LOG_ERR, "Went to write a thumbnail to disk in EmbedPlugin::storeRemoteThumbnail " .
"but encountered error: {$err}");