summaryrefslogtreecommitdiff
path: root/src/dynamic.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-21 21:40:23 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-21 21:40:23 +0000
commitef3ef4727dbce41760f02092d6abec4241d85903 (patch)
treea4499b6b35662a90a7294215e02ed2009d9b614a /src/dynamic.cpp
parentf508e5fb37726b1acc136c3c163e8834ab814bca (diff)
Made error more understandable on 'file not found'
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3280 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/dynamic.cpp')
-rw-r--r--src/dynamic.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dynamic.cpp b/src/dynamic.cpp
index dfc02ac24..77513bbb4 100644
--- a/src/dynamic.cpp
+++ b/src/dynamic.cpp
@@ -69,6 +69,10 @@ DLLManager::DLLManager(char *fname)
// shared libraries are mmap()ed and not doing this causes
// segfaults.
FILE* x = fopen(fname,"rb");
+ if (!x)
+ {
+ err = "Module file not found or cannot access, game over man!";
+ }
char tmpfile_template[255];
char buffer[65536];
snprintf(tmpfile_template, 255, "%s/inspircd_file.so.%d.XXXXXXXXXX",Config->TempDir,getpid());