diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/config.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/config.cpp b/src/config.cpp index 348bd9dd8..24387d2bb 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -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; |