We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 491d41d commit ea0f174Copy full SHA for ea0f174
app/base/controllers/Frontend/Commerce/Cart/Discount.php
@@ -132,7 +132,7 @@ public function beforeRender() : BasePage|Response
132
);
133
} catch (\Exception $e) {
134
throw new RuntimeException(
135
- $this->getUtils()->translate('Failed to apply discount: ' . $e->getMessage(), locale: $this->getCurrentLocale())
+ $this->getUtils()->translate('Failed to apply discount: %s', [$e->getMessage()], locale: $this->getCurrentLocale())
136
137
}
138
0 commit comments