Skip to content

Commit 20f28e3

Browse files
committed
Merge pull request #34 from kenjis/fix-cli-error-view
Fix layout of cli error exception template
2 parents 80c0366 + c946a99 commit 20f28e3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

application/Views/errors/cli/error_exception.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99

1010
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
1111

12-
Backtrace:
13-
<?php foreach ($exception->getTrace() as $error): ?>
14-
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
15-
File: <?php echo $error['file'], "\n"; ?>
16-
Line: <?php echo $error['line'], "\n"; ?>
17-
Function: <?php echo $error['function'], "\n\n"; ?>
18-
<?php endif ?>
19-
<?php endforeach ?>
12+
Backtrace:
13+
<?php foreach ($exception->getTrace() as $error): ?>
14+
<?php if (isset($error['file'])): ?>
15+
File: <?php echo $error['file'], "\n"; ?>
16+
Line: <?php echo $error['line'], "\n"; ?>
17+
Function: <?php echo $error['function'], "\n\n"; ?>
18+
<?php endif ?>
19+
<?php endforeach ?>
2020

2121
<?php endif ?>

0 commit comments

Comments
 (0)