summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
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;
}
}