Skip to content

Commit

Permalink
Attempt to send mail template that doesn't exist should be error
Browse files Browse the repository at this point in the history
This either indicates that the email that should exist doesn't,
or a typo in a fixed template code string. Both of them sound
like an error.
  • Loading branch information
rootpd committed Mar 11, 2024
1 parent 1d86fe3 commit a408d81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hermes/SendEmailHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function handle(MessageInterface $message): bool

$mailTemplate = $this->apiClient->getTemplate($payload['mail_template_code']);
if (!$mailTemplate) {
Debugger::log("Could not load mail template: record with code [{$payload['mail_template_code']}] doesn't exist");
Debugger::log("Could not load mail template: record with code [{$payload['mail_template_code']}] doesn't exist", ILogger::ERROR);
return false;
}

Expand Down

0 comments on commit a408d81

Please sign in to comment.