diff options
author | Andrey Andreev <narf@devilix.net> | 2015-07-25 08:52:09 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2015-07-25 08:52:09 +0200 |
commit | eec91a2ce4400ca98c318e34dae17592847e1ce6 (patch) | |
tree | 90ff7e5945f2c81ad6cb56b3f481f56961fb608f /application/views/errors/cli | |
parent | 10b6e7a51a127e84fdf3d945afa4aebe50ed0b36 (diff) | |
parent | 1497d4ec5adb8af92d54e1f321cac792bf0bc15e (diff) |
Merge pull request #3988 from kenjis/fix-views-errors-cli
[ci skip] Improve readability in CLI error templates
Diffstat (limited to 'application/views/errors/cli')
-rw-r--r-- | application/views/errors/cli/error_exception.php | 8 | ||||
-rw-r--r-- | application/views/errors/cli/error_php.php | 14 |
2 files changed, 11 insertions, 11 deletions
diff --git a/application/views/errors/cli/error_exception.php b/application/views/errors/cli/error_exception.php index 0203cf467..efa6a66d1 100644 --- a/application/views/errors/cli/error_exception.php +++ b/application/views/errors/cli/error_exception.php @@ -2,10 +2,10 @@ An uncaught Exception was encountered -Type: <?php echo get_class($exception), "\n"; ?> -Message: <?php echo $message, "\n"; ?> -Filename: <?php echo $exception->getFile(), "\n"; ?> -Line Number: <?php echo $exception->getLine(), "\n"; ?> +Type: <?php echo get_class($exception), "\n"; ?> +Message: <?php echo $message, "\n"; ?> +Filename: <?php echo $exception->getFile(), "\n"; ?> +Line Number: <?php echo $exception->getLine(); ?> <?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?> diff --git a/application/views/errors/cli/error_php.php b/application/views/errors/cli/error_php.php index 0ea9109fa..8a24b6491 100644 --- a/application/views/errors/cli/error_php.php +++ b/application/views/errors/cli/error_php.php @@ -2,19 +2,19 @@ A PHP Error was encountered -Severity: <?php echo $severity, "\n";?> -Message: <?php echo $message, "\n";?> -Filename: <?php echo $filepath, "\n";?> -Line Number: <?php echo $line;?> +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): ?> - File: <?php echo $error['file'], "\n";?> - Line: <?php echo $error['line'], "\n";?> - Function: <?php echo $error['function'], "\n\n";?> + File: <?php echo $error['file'], "\n"; ?> + Line: <?php echo $error['line'], "\n"; ?> + Function: <?php echo $error['function'], "\n\n"; ?> <?php endif ?> <?php endforeach ?> |