summaryrefslogtreecommitdiffstats
path: root/application/views/errors/cli
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-07-20 13:39:13 +0200
committerAndrey Andreev <narf@devilix.net>2015-07-20 13:39:13 +0200
commit2d39cd729dd4143afbfa315615f35d3ea2545c95 (patch)
tree35725fce9ca32fe1a8d71ba403f347067bf7fedf /application/views/errors/cli
parent72774470d435b18fac6cb90bc4e4ff2b9e8684a2 (diff)
parent11fdc643f5125ed1e2bb0009e423332c717f707a (diff)
Merge pull request #3983 from kenjis/fix-cli-error-php
[ci skip] Fix errors/cli/error_php.php output
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..d977f8464 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 ?>