ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/src/modules.c
(Generate patch)

Comparing ircd-hybrid-8/src/modules.c (file contents):
Revision 1573 by michael, Mon Jun 25 20:22:29 2012 UTC vs.
Revision 1574 by michael, Wed Oct 17 22:08:15 2012 UTC

# Line 130 | Line 130 | load_a_module(const char *path, int warn
130  
131    if ((modp = lt_dlsym(tmpptr, "module_entry")) == NULL)
132    {
133 <    sendto_realops_flags(UMODE_ALL, L_ALL, "Module %s has no module_entry export",
134 <                         mod_basename);
135 <    ilog(LOG_TYPE_IRCD, "Module %s has no module_entry export", mod_basename);
133 >    const char *err = ((err = lt_dlerror())) ? err : "<unknown>";
134 >
135 >    sendto_realops_flags(UMODE_ALL, L_ALL, "Error loading module %s: %s",
136 >                         mod_basename, err);
137 >    ilog(LOG_TYPE_IRCD, "Error loading module %s: %s", mod_basename, err);
138      lt_dlclose(tmpptr);
139      return -1;
140    }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines