summaryrefslogtreecommitdiffstats
path: root/application/views/errors/cli
diff options
context:
space:
mode:
authorkenjis <kenji.uui@gmail.com>2015-07-18 03:45:43 +0200
committerkenjis <kenji.uui@gmail.com>2015-07-18 03:45:43 +0200
commit20473fa9612caaa8eba5acbe81110cf1e5b25970 (patch)
treeda7cf0034ef812173153d7f00e1e08155fb86334 /application/views/errors/cli
parent2ef5ed458c611331facfeb5abee051f4c0d1b08e (diff)
Fix errors/cli/error_php.php output
Signed-off-by: Kenji Suzuki <kenji.uui@gmail.com>
Diffstat (limited to 'application/views/errors/cli')
-rw-r--r--application/views/errors/cli/error_php.php24
1 files changed, 11 insertions, 13 deletions
diff --git a/application/views/errors/cli/error_php.php b/application/views/errors/cli/error_php.php
index fec91e54f..ed181a887 100644
--- a/application/views/errors/cli/error_php.php
+++ b/application/views/errors/cli/error_php.php
@@ -4,22 +4,20 @@ defined('BASEPATH') OR exit('No direct script access allowed');
A PHP Error was encountered
-Severity: <?php echo $severity;?>
-Message: <?php echo $message;?>
-Filename: <?php echo $filepath;?>
+Severity: <?php echo $severity, "\n";?>
+Message: <?php echo $message, "\n";?>
+Filename: <?php echo $filepath, "\n";?>
Line Number: <?php echo $line;?>
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
Backtrace:
- <?php foreach (debug_backtrace() as $error): ?>
- <?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
+<?php foreach (debug_backtrace() as $error): ?>
+<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
+ File: <?php echo $error['file'], "\n";?>
+ Line: <?php echo $error['line'], "\n";?>
+ Function: <?php echo $error['function'], "\n\n";?>
+<?php endif ?>
+<?php endforeach ?>
- File: <?php echo $error['file'];?>
- Line: <?php echo $error['line'];?>
- Function: <?php echo $error['function'];?>
-
- <?php endif ?>
-
- <?php endforeach ?>
-<?php endif ?> \ No newline at end of file
+<?php endif ?>