diff --git a/app/Browser/Jobs/InstagramRepost/InstagramRepostJob.php b/app/Browser/Jobs/InstagramRepost/InstagramRepostJob.php index a15fcd9..a1b815b 100644 --- a/app/Browser/Jobs/InstagramRepost/InstagramRepostJob.php +++ b/app/Browser/Jobs/InstagramRepost/InstagramRepostJob.php @@ -189,7 +189,8 @@ class InstagramRepostJob extends BrowserJob implements ShouldBeUniqueUntilProces "content" => "" ])); } catch (\Exception $e) { - dump($e->getMessage()); + $browser->screenshot(JobDebugScreenshot::getFileName($this->jobId)); + AllNotification::send(new JobDebugNotification($this->jobId, "Unknown error when trying to repost reels : " . $e->getMessage())); } finally { // Removes all videos in the download folder $files = glob($this->downloadFolder . '*'); // Get all files in the download folder