]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/config/ConfigManager.php
Proper error if the conf file is invalid instead of fatal error
[github/shaarli/Shaarli.git] / application / config / ConfigManager.php
index f2097410364db285236fdd5013bcfa8729882e35..e98af8ab0fe5c8892b36bca44715c499e252e20f 100644 (file)
@@ -81,7 +81,11 @@ class ConfigManager
      */
     protected function load()
     {
-        $this->loadedConfig = $this->configIO->read($this->getConfigFileExt());
+        try {
+            $this->loadedConfig = $this->configIO->read($this->getConfigFileExt());
+        } catch (\Exception $e) {
+            die($e->getMessage());
+        }
         $this->setDefaultValues();
     }