1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 20:03:13 +02:00

Show the reason why a config file failed to open.

This commit is contained in:
Sadie Powell
2025-04-27 14:16:10 +01:00
parent 551f3504c8
commit 046fa5c848
+4 -1
View File
@@ -776,7 +776,10 @@ void Conf::LoadConf(File &file)
return;
if (!file.Open())
throw ConfigException("File " + file.GetPath() + " could not be opened.");
{
throw ConfigException(Anope::printf("File %s could not be opened: %s.",
file.GetPath().c_str(), strerror(errno)));
}
Anope::string itemname, wordbuffer;
std::stack<Block *> block_stack;