Update: 2026-05-08 04:58:23
This commit is contained in:
@@ -61,5 +61,5 @@ try {
|
||||
|
||||
} catch (\Exception $e) {
|
||||
error_log("JoFotara Connection Error: " . $e->getMessage());
|
||||
json_error('فشل في حفظ البيانات: ' . $e->getMessage(), 500);
|
||||
safe_error($e, 'companies/connect_jofotara', 'فشل في ربط جوفوترا. يرجى المحاولة مرة أخرى.');
|
||||
}
|
||||
|
||||
@@ -89,5 +89,6 @@ try {
|
||||
|
||||
} catch (\Exception $e) {
|
||||
$db->rollBack();
|
||||
json_error('حدث خطأ أثناء حفظ البيانات: ' . $e->getMessage(), 500);
|
||||
error_log("[companies/create] Error: " . $e->getMessage());
|
||||
json_error('حدث خطأ أثناء إنشاء الشركة. يرجى المحاولة مرة أخرى.', 500);
|
||||
}
|
||||
|
||||
@@ -64,5 +64,5 @@ try {
|
||||
json_success($companies);
|
||||
|
||||
} catch (\Exception $e) {
|
||||
json_error('SQL Error in Companies List: ' . $e->getMessage(), 500);
|
||||
safe_error($e, 'companies/index');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user