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:
+4
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user