summaryrefslogtreecommitdiffstats
path: root/application/errors/error_general.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-03-08 21:06:39 +0100
committerFlorian Pritz <bluewind@xinu.at>2015-03-08 21:06:39 +0100
commit4d1e08883ddd55ad7ad56d25b8c1b83ab7d31838 (patch)
tree047bc95d129507b5221428a70bf8658f195c5d35 /application/errors/error_general.php
parent843524be0f8b988f38bcbe28b4acceee2b9199d5 (diff)
Test: Improve exception handling
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/errors/error_general.php')
-rw-r--r--application/errors/error_general.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/application/errors/error_general.php b/application/errors/error_general.php
index 87d5b62f6..925c7751f 100644
--- a/application/errors/error_general.php
+++ b/application/errors/error_general.php
@@ -33,8 +33,11 @@ if (class_exists("CI_Controller") && !isset($GLOBALS["is_error_page"])) {
<?php
include 'application/views/footer.php';
} elseif (php_sapi_name() === 'cli' OR defined('STDIN')) {
- echo "$heading\n";
- echo str_replace("<br>", "\n", $message);
+ echo "# $heading\n";
+ $msg = strip_tags(str_replace("<br>", "\n", $message));
+ foreach (explode("\n", $msg) as $line) {
+ echo "# $line\n";
+ }
} else {
// default CI error page
?>