Skip to content

Commit

Permalink
Enclosed error with <pre> tag for prettier error print (if developer …
Browse files Browse the repository at this point in the history
…mode is enabled). (#2368)
  • Loading branch information
kiatng authored Aug 5, 2022
1 parent 9cb2748 commit f799cff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Mage.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
if (!empty($_SERVER['MAGE_IS_DEVELOPER_MODE']) || !empty($_ENV['MAGE_IS_DEVELOPER_MODE'])) {
Mage::setIsDeveloperMode(true);
ini_set('display_errors', 1);
ini_set('error_prepend_string', '<pre>');
ini_set('error_append_string', '</pre>');
}

/**
Expand Down

0 comments on commit f799cff

Please sign in to comment.