summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-11 18:57:22 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-11 18:57:22 +0000
commita004ad524ff0cbed063ff2dd902cadd38e48f30e (patch)
tree801029a22c6c5415eb1856ca41ddd875683a1338 /src/inspircd.cpp
parent1a0357cc2caa18cb2b1ee115053c8f239aa5576b (diff)
Report failure to load configs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8571 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 87af7b06e..e8a7d85dc 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -515,6 +515,12 @@ InspIRCd::InspIRCd(int argc, char** argv)
/* One or more file download/access errors, do not
* proceed to second pass
*/
+ for (std::map<std::string, std::istream*>::iterator x = Config->IncludedFiles.begin(); x != Config->IncludedFiles.end(); ++x)
+ {
+ if (!x->second)
+ printf("ERROR: Failed to access the file: %s.\n", x->first.c_str());
+ }
+ printf("Initialisation of configuration failed.\n");
Exit(EXIT_STATUS_CONFIG);
}