# Debug
# Output error message
Unfortunately, not all errors are passed through to the Shopware log.
If a voucher cannot be redeemed and the message "Unfortunately, something went wrong" appears in the shopping cart, perform the following steps to display the error message:
Edit the file: /vendor/shopware/storefront/Controller/CartLineItemController.php.
Change from line: 134
from
} catch (\Exception $exception) {
$this->addFlash(self::DANGER, $this->trans('error.message-default'));
}
1
2
3
2
3
in
} catch (\Exception $exception) {
dd($exception);
$this->addFlash(self::DANGER, $this->trans('error.message-default'));
}
1
2
3
4
2
3
4
Redeem the voucher. Now the error message should be displayed.