1
0
mirror of https://github.com/danog/dns.git synced 2024-11-26 20:14:51 +01:00

Trigger error if the config cannot be loaded

This commit is contained in:
Daniil Gentili 2019-06-13 19:32:05 +02:00
parent e754214307
commit 996a7819bc

View File

@ -98,6 +98,7 @@ final class Rfc1035StubResolver implements Resolver
try {
yield $this->reloadConfig();
} catch (ConfigException $e) {
trigger_error("Could not load DNS config, using synchronous fallback", E_USER_WARNING);
$this->configStatus = self::CONFIG_FAILED;
}
}