]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
fix(dnsdist): improve error when YAML is unsupported
authorPieter Lexis <pieter.lexis@powerdns.com>
Mon, 8 Sep 2025 09:53:37 +0000 (11:53 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Tue, 14 Oct 2025 18:34:58 +0000 (20:34 +0200)
pdns/dnsdistdist/dnsdist-configuration-yaml.cc

index f80d0ae3c505ea5676862165be319f332e8604b7..35495415330ea46bb09c3fc88bef12c0fcddf96f 100644 (file)
@@ -1245,7 +1245,7 @@ bool loadConfigurationFromFile(const std::string& fileName, [[maybe_unused]] boo
   return false;
 #else
   (void)fileName;
-  throw std::runtime_error("Unsupported YAML configuration");
+  throw std::runtime_error("YAML configuration is not supported by this build of dnsdist");
 #endif /* HAVE_YAML_CONFIGURATION */
 }