[asterisk-commits] mnicholson: branch 1.4 r275182 - /branches/1.4/main/loader.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 9 13:23:27 CDT 2010


Author: mnicholson
Date: Fri Jul  9 13:23:23 2010
New Revision: 275182

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=275182
Log:
give a better error message when attempting to unload a module that is not loaded

Modified:
    branches/1.4/main/loader.c

Modified: branches/1.4/main/loader.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/main/loader.c?view=diff&rev=275182&r1=275181&r2=275182
==============================================================================
--- branches/1.4/main/loader.c (original)
+++ branches/1.4/main/loader.c Fri Jul  9 13:23:23 2010
@@ -498,8 +498,10 @@
 		return 0;
 	}
 
-	if (!mod->flags.running || mod->flags.declined)
+	if (!mod->flags.running || mod->flags.declined) {
+		ast_log(LOG_WARNING, "Unload failed, '%s' is not loaded.\n", resource_name);
 		error = 1;
+	}
 
 	if (!mod->lib) {
 		ast_log(LOG_WARNING, "Unloading embedded modules is not supported.\n");




More information about the asterisk-commits mailing list