summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-04-06 20:44:46 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-04-06 20:44:46 +0000
commitad40b6420ef9a0b15e86bcc2728cc6c47834d7dd (patch)
tree6d628623f6f0260a07a3ef2b66ceff6d8dd59dcd
parentea888f7b6acc828783354b8ddd802262f1080347 (diff)
More information in error when a module cant be loaded
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6755 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/helperfuncs.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 37a9e1b04..3f0b5ff0c 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -461,13 +461,13 @@ void InspIRCd::LoadAllModules()
for (int count = 0; count < Config->ConfValueEnum(Config->config_data, "module"); count++)
{
- Config->ConfValue(Config->config_data, "module","name",count,configToken,MAXBUF);
+ Config->ConfValue(Config->config_data, "module", "name", count, configToken, MAXBUF);
printf("[\033[1;32m*\033[0m] Loading module:\t\033[1;32m%s\033[0m\n",configToken);
if (!this->LoadModule(configToken))
{
- this->Log(DEFAULT,"There was an error loading a module: %s", this->ModuleError());
- printf("\nThere was an error loading a module: %s\n\n",this->ModuleError());
+ this->Log(DEFAULT,"There was an error loading the module '%s': %s", configToken, this->ModuleError());
+ printf("\n[\033[1;31m*\033[0m] There was an error loading the module '%s': %s\n\n", configToken, this->ModuleError());
Exit(EXIT_STATUS_MODULE);
}
}