Skip to content

Commit c7a47fa

Browse files
authored
Merge pull request #6657 from fpoy/BUG_hardcoded_error_view_path
Bug: showError in CLI/BaseCommand use hardcoded error view path
2 parents eff1efe + 3d02abc commit c7a47fa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

system/CLI/BaseCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,9 @@ protected function showError(Throwable $e)
119119
{
120120
$exception = $e;
121121
$message = $e->getMessage();
122+
$config = config('Exceptions');
122123

123-
require APPPATH . 'Views/errors/cli/error_exception.php';
124+
require $config->errorViewPath . '/cli/error_exception.php';
124125
}
125126

126127
/**

0 commit comments

Comments
 (0)