summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-16 21:40:06 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-16 21:40:06 +0000
commitdbe93e44775c4a274d329e152babd8330dadcbf8 (patch)
tree55d4bd231ecbe94f563e15e45c725acc860d4447 /src/inspircd.cpp
parentd2bc82e04d45bcafabc430e765fdfc8eb43d558e (diff)
Add stuff so that the core catches CoreException properly
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6017 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 59be29843..54c3aa0ab 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -653,10 +653,10 @@ bool InspIRCd::LoadModule(const char* filename)
return false;
}
}
- catch (ModuleException& modexcept)
+ catch (CoreException& modexcept)
{
this->Log(DEFAULT,"Unable to load %s: ",modfile,modexcept.GetReason());
- snprintf(MODERR,MAXBUF,"Factory function threw an exception: %s",modexcept.GetReason());
+ snprintf(MODERR,MAXBUF,"Factory function of %s threw an exception: %s", modexcept.GetSource(), modexcept.GetReason());
return false;
}
}