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); } } }