summaryrefslogtreecommitdiff
path: root/src/config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.cpp')
-rw-r--r--src/config.cpp5
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;