diff options
Diffstat (limited to 'app/Models/SystemConfiguration.php')
| -rw-r--r-- | app/Models/SystemConfiguration.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/Models/SystemConfiguration.php b/app/Models/SystemConfiguration.php index 3c9cc116d..522e475ea 100644 --- a/app/Models/SystemConfiguration.php +++ b/app/Models/SystemConfiguration.php @@ -30,9 +30,13 @@ declare(strict_types=1); */ final class FreshRSS_SystemConfiguration extends Minz_Configuration { - /** @throws Minz_ConfigurationNamespaceException */ + /** @throws Minz_FileNotExistException */ public static function init(string $config_filename, ?string $default_filename = null): FreshRSS_SystemConfiguration { parent::register('system', $config_filename, $default_filename); - return parent::get('system'); + try { + return parent::get('system'); + } catch (Minz_ConfigurationNamespaceException $ex) { + FreshRSS::killApp($ex->getMessage()); + } } } |
