From ef3ef4727dbce41760f02092d6abec4241d85903 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 21 Feb 2006 21:40:23 +0000 Subject: Made error more understandable on 'file not found' git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3280 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dynamic.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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()); -- cgit v1.2.3