]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_so: Provide more helpful LoadModule feedback when an error occurs.
authorJustin Erenkrantz <jerenkrantz@apache.org>
Fri, 18 May 2007 06:04:31 +0000 (06:04 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Fri, 18 May 2007 06:04:31 +0000 (06:04 +0000)
(Backport of r520733)

Reviewed by: wrowe, rpluem, niq

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@539275 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/mappers/mod_so.c

diff --git a/CHANGES b/CHANGES
index 001e956c246371e79238c61c086d33626065803f..f8904270fe8fd7d429f9c02bd3f18ff3bd18a907 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                         -*- coding: utf-8 -*-
 Changes with Apache 2.2.5
 
+  *) mod_so: Provide more helpful LoadModule feedback when an error occurs.
+     [William Rowe]
+
   *) mod_alias: Accept path components (URL part) in Redirects.  PR 35314.
      [Nick Kew]
 
index b95aba546e7d611bc49dd1d318c69935d6aee18e..44bed43b69b760f820479df0da8465018ddf9c7d 100644 (file)
@@ -268,9 +268,12 @@ static const char *load_module(cmd_parms *cmd, void *dummy,
      *
      */
     if (modp->magic != MODULE_MAGIC_COOKIE) {
-        return apr_pstrcat(cmd->pool, "API module structure `", modname,
-                          "' in file ", szModuleFile, " is garbled -"
-                          " perhaps this is not an Apache module DSO?", NULL);
+        return apr_psprintf(cmd->pool, "API module structure '%s' in file %s "
+                            "is garbled - expected signature %08lx but saw "
+                            "%08lx - perhaps this is not an Apache module DSO, "
+                            "or was compiled for a different Apache version?",
+                            modname, szModuleFile, 
+                            MODULE_MAGIC_COOKIE, modp->magic);
     }
 
     /*