Task: #53687 Handle missing mode fallback and add no-mode cfg tests

This commit is contained in:
Alejandro Sosa 2026-03-26 09:31:07 +01:00
commit e2cc59fe91
5 changed files with 45 additions and 3 deletions

View file

@ -334,7 +334,7 @@ try {
elseif (is_readable($cfgFile = $cfg->buildFileName())) {
$cfg->load(require($cfgFile));
}
} catch (Exception $e) {
} catch (\Throwable $e) {
fwrite(STDERR, "Error: ".$e->getMessage().PHP_EOL);
exit(1);
}