fix: add error_log to print the caught exception
This commit is contained in:
parent
de09af57b6
commit
a308ffaa2c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue