fix: add error_log to print the caught exception

This commit is contained in:
vnmedeiros 2022-07-13 09:30:27 -03:00
parent de09af57b6
commit a308ffaa2c
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ class Media {
return $this->insert_attachment_from_blob($file, basename($url), $post_id);
} catch (\Exception $e) {
error_log($e);
return false;
}