store error mails in Mailing Table

This commit is contained in:
Bruno Eckhardt committed 2026-03-26 08:10:57 +01:00
1 parent 29a1be5d22
commit f4b65903f7
3 files changed
+4 -1

No files matched your search

+1
View File
@@ -31,6 +31,7 @@ if (!in_array($token, $validTokens)) {
errorMail(
"API Login failed",
$error,
true,
);
echo $error;
exit;
+1
View File
@@ -65,6 +65,7 @@ function db_connect() {
errorMail(
"Database Connection failed",
$e->getMessage(),
false,
);
redirectToWebsite("https://blackpi.ipv64.net");
throw $e;
+2 -1
View File
@@ -93,7 +93,8 @@ function logging() {
} catch (mysqli_sql_exception $e) {
errorMail(
"Logging failed",
$e->getMessage()
$e->getMessage(),
true,
);
throw $e;
}