rse 98/04/18 04:53:35
Modified: src/main http_core.c
Log:
Give the AddModule directive a more useful error message.
Revision Changes Path
1.184 +4 -3 apache-1.3/src/main/http_core.c
Index: http_core.c
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/main/http_core.c,v
retrieving revision 1.183
retrieving revision 1.184
diff -u -r1.183 -r1.184
--- http_core.c 1998/04/13 18:05:11 1.183
+++ http_core.c 1998/04/18 11:53:35 1.184
@@ -1244,9 +1244,10 @@
const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);
if (err != NULL) return err;
- if (ap_add_named_module (arg))
- return NULL;
- return "required module not found";
+ if (!ap_add_named_module(arg))
+ return ap_pstrcat(cmd->pool, "Cannot add module via name '", arg,
+ "': not in list of loaded modules", NULL);
+ return NULL;
}
static const char *clear_module_list_command (cmd_parms *cmd, void *dummy)