Skip to content

Commit ffc509b

Browse files
committed
include support email in error message
1 parent 8312ea2 commit ffc509b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

resources/lib/UnitySite.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,19 @@ public static function shutdown()
8181
self::errorLog("internal server error", json_encode($e));
8282
echo "
8383
<h1>An internal server error has occurred.</h1>
84-
<p>Please notify a Unity admin. Error ID: $errorid.</p>
84+
<p>
85+
Please notify a Unity admin at "
86+
. CONFIG["mail"]["support"]
87+
. ". Error ID: $errorid.
88+
</p>
8589
";
8690
// if content already printed, status code will be ignored and alert text may not be
8791
// shown in the webpage in an obvious way, so make a popup
8892
self::alert(
89-
"An internal server error has occurred. Please notify a Unity admin. "
90-
. "Error ID: $errorid."
93+
"An internal server error has occurred. "
94+
. "Please notify a Unity admin at "
95+
. CONFIG["mail"]["support"]
96+
. ". Error ID: $errorid."
9197
);
9298
}
9399
}

0 commit comments

Comments
 (0)