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:
parent
e754214307
commit
996a7819bc
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user