This repository was archived by the owner on Sep 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
core/controllers/components Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -46,9 +46,11 @@ public function fatalEror($logger, $mailer)
46
46
switch ($ environment )
47
47
{
48
48
case 'production ' :
49
- $ message .= "It seems you have just encountered an unknown issue. " ;
50
- $ message .= "Our team has been notified and will deal with the problem as soon as possible. " ;
51
-
49
+ $ message = "The system has encountered the following error:<br/><h3> " ;
50
+ $ message .= $ e ->message . "<br/> " ;
51
+ $ message .= "In " . $ e ->file . ", line: " . $ e ->line . "<br/> " ;
52
+ $ message .= "At " . date ("H:i:s Y-m-d " ) . "</h3><br/> " ;
53
+ $ message .= "Please notify your administrator with this information.<br/> " ;
52
54
if ($ e ['type ' ] == E_NOTICE )
53
55
{
54
56
$ e ['typeText ' ] = 'E_NOTICE ' ;
@@ -273,8 +275,11 @@ public function getShortErrorMessage()
273
275
switch ($ this ->_environment )
274
276
{
275
277
case 'production ' :
276
- $ message .= "It seems you have just encountered an unknown issue. " ;
277
- $ message .= "Our team has been notified and will deal with the problem as soon as possible. " ;
278
+ $ message = "The system has encountered the following error:<br/><h3> " ;
279
+ $ message .= $ this ->_error ->exception ->getMessage () . "<br/> " ;
280
+ $ message .= "In " . $ this ->_error ->exception ->getFile () . ", line: " . $ this ->_error ->exception ->getLine () . "<br/> " ;
281
+ $ message .= "At " . date ("H:i:s Y-m-d " ) . "</h3><br/> " ;
282
+ $ message .= "Please notify your administrator with this information.<br/> " ;
278
283
break ;
279
284
default :
280
285
$ message .= "Message: " . $ this ->_error ->exception ->getMessage () . "\n\n" ;
You can’t perform that action at this time.
0 commit comments