From a308ffaa2c3ee7dd9aed86525a724d91d65e8c2c Mon Sep 17 00:00:00 2001 From: vnmedeiros Date: Wed, 13 Jul 2022 09:30:27 -0300 Subject: [PATCH] fix: add error_log to print the caught exception --- src/classes/class-tainacan-media.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/classes/class-tainacan-media.php b/src/classes/class-tainacan-media.php index 9716b27e7..7933b8897 100644 --- a/src/classes/class-tainacan-media.php +++ b/src/classes/class-tainacan-media.php @@ -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; }