Skip to content

Commit

Permalink
Make CMS directive filtering error be more generic
Browse files Browse the repository at this point in the history
- Even though the filter method is in the \Magento\Email\Model\Template\Filter class,
  that class is extended by several CMS classes
  • Loading branch information
erikhansen committed Jun 29, 2016
1 parent 73a5230 commit bda5658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Email/Model/Template/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ public function filter($value)
if ($this->_appState->getMode() == \Magento\Framework\App\State::MODE_DEVELOPER) {
$value = sprintf(__('Error filtering template: %s'), $e->getMessage());
} else {
$value = __("We're sorry, an error has occurred while generating this email.");
$value = __("We're sorry, an error has occurred while generating this content.");
}
$this->_logger->critical($e);
}
Expand Down

0 comments on commit bda5658

Please sign in to comment.