1
0
mirror of https://github.com/apache/httpd.git synced 2026-01-26 19:01:35 +03:00

report dso_error if any

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85052 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Doug MacEachern
2000-04-27 04:15:48 +00:00
parent 440ba7ba22
commit 8d22638604

View File

@@ -249,11 +249,11 @@ static const char *load_module(cmd_parms *cmd, void *dummy,
* Load the file into the Apache address space
*/
if ((stat = ap_dso_load(&modhandle, szModuleFile, cmd->pool )) != APR_SUCCESS) {
const char *my_error = ap_os_dso_error();
const char *my_error = ap_os_dso_error();
return ap_pstrcat (cmd->pool, "Cannot load ", szModuleFile,
" into server: ",
"(reason unknown)",
NULL);
" into server: ",
my_error ? my_error : "(reason unknown)",
NULL);
}
ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, NULL,
"loaded module %s", modname);