We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8729867 + f85d8fd commit f59d6b8Copy full SHA for f59d6b8
1 file changed
system/CodeIgniter.php
@@ -976,7 +976,7 @@ protected function display404errors(PageNotFoundException $e)
976
}
977
978
979
- throw PageNotFoundException::forPageNotFound($e->getMessage());
+ throw PageNotFoundException::forPageNotFound(ENVIRONMENT !== 'production' || is_cli() ? $e->getMessage() : '');
980
981
982
//--------------------------------------------------------------------
0 commit comments