Page MenuHomePhorge

D1588.1775196392.diff
No OneTemporary

Authored By
Unknown
Size
837 B
Referenced Files
None
Subscribers
None

D1588.1775196392.diff

diff --git a/src/app/Jobs/WalletCheck.php b/src/app/Jobs/WalletCheck.php
--- a/src/app/Jobs/WalletCheck.php
+++ b/src/app/Jobs/WalletCheck.php
@@ -216,7 +216,19 @@
list($to, $cc) = \App\Mail\Helper::userEmails($this->wallet->owner, $with_external);
if (!empty($to) || !empty($cc)) {
- Mail::to($to)->cc($cc)->send($mail);
+ try {
+ Mail::to($to)->cc($cc)->send($mail);
+ } catch (\Exception $e) {
+ $msg = sprintf(
+ "[WalletCheck] Failed to send mail for wallet %s (%s): %s",
+ $this->wallet->id,
+ json_encode(array_merge([$to], $cc)),
+ $e->getMessage()
+ );
+
+ \Log::error($msg);
+ throw $e;
+ }
}
}

File Metadata

Mime Type
text/plain
Expires
Fri, Apr 3, 6:06 AM (1 d, 1 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18811962
Default Alt Text
D1588.1775196392.diff (837 B)

Event Timeline