From 5e296995638e8a011cc46bda3eb55199a36bd63d Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sat, 30 Mar 2024 09:16:31 +0100 Subject: [PATCH] =?UTF-8?q?jsondb=20stoppe=20apr=C3=A8s=20une=20erreur=20d?= =?UTF-8?q?e=20chargement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/class/jsondb/JsonDb.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/class/jsondb/JsonDb.class.php b/core/class/jsondb/JsonDb.class.php index 29d932a3..11223ac9 100644 --- a/core/class/jsondb/JsonDb.class.php +++ b/core/class/jsondb/JsonDb.class.php @@ -121,10 +121,10 @@ class JsonDb extends \Prowebcraft\Dot } else { if ($this->config['backup']) { try { - //todo make backup of database copy($this->config['dir'] . DIRECTORY_SEPARATOR . $this->config['name'], $this->config['dir'] . DIRECTORY_SEPARATOR . $this->config['name'] . '.backup'); } catch (\Exception $e) { - + error_log('Erreur de chargement : ' . $e); + exit('Erreur de chargement : ' . $e); } } }