Update: 2026-06-16 17:47:17
This commit is contained in:
@@ -39,6 +39,7 @@ try {
|
||||
if ($con->inTransaction()) {
|
||||
$con->rollBack();
|
||||
}
|
||||
printFailure("Database error: " . $e->getMessage());
|
||||
error_log("[passengerWallet/add] " . $e->getMessage());
|
||||
printFailure("Database error");
|
||||
}
|
||||
?>
|
||||
@@ -24,7 +24,8 @@ try {
|
||||
printFailure("Failed to save record");
|
||||
}
|
||||
} catch (PDOException $e) {
|
||||
printFailure("Database error: " . $e->getMessage());
|
||||
error_log("[addPaymentTokenPassenger] " . $e->getMessage());
|
||||
printFailure("Database error");
|
||||
}
|
||||
|
||||
// Rest of your code including the generateSecureToken function...
|
||||
|
||||
@@ -54,6 +54,7 @@ try {
|
||||
if ($con->inTransaction()) {
|
||||
$con->rollBack();
|
||||
}
|
||||
printFailure("An error occurred: " . $e->getMessage());
|
||||
error_log("add_s2s_debt: " . $e->getMessage()); // logged server-side only
|
||||
printFailure("An error occurred");
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -92,6 +92,7 @@ try {
|
||||
if ($con->inTransaction()) {
|
||||
$con->rollBack();
|
||||
}
|
||||
printFailure("Transaction Failed: " . $e->getMessage());
|
||||
error_log("[process_wait_compensation] " . $e->getMessage());
|
||||
printFailure("Transaction Failed");
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user