Skip to content

Commit 1ec6922

Browse files
committed
Mark failed.
1 parent c348de6 commit 1ec6922

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Models/MailatorSchedule.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,13 @@ public function shouldSend(): bool
330330
$this->load('logs');
331331

332332
return $this->configurationsPasses() && $this->whenPasses() && $this->eventsPasses();
333+
<<<<<<< Updated upstream
333334
} catch (Exception | Throwable) {
335+
=======
336+
} catch (Exception|Throwable $e) {
337+
$this->markAsFailed($e->getMessage());
338+
339+
>>>>>>> Stashed changes
334340
return false;
335341
}
336342
}
@@ -353,7 +359,12 @@ public function execute(bool $now = false): void
353359
dispatch(new SendMailJob($this));
354360
}
355361
}
362+
<<<<<<< Updated upstream
356363
} catch (Exception | Throwable) {
364+
=======
365+
} catch (Exception|Throwable $e) {
366+
$this->markAsFailed($e->getMessage());
367+
>>>>>>> Stashed changes
357368
}
358369
}
359370

0 commit comments

Comments
 (0)