|
|
Choosing A Webhost: |
rev 228 - trunk/src: msg#00096lang.prothon.cvs
Author: bcollins Date: 2004-03-31 10:08:35 -0500 (Wed, 31 Mar 2004) New Revision: 228 Modified: trunk/src/interp.c Log: Cleanup error reporting for dso failures. Modified: trunk/src/interp.c =================================================================== --- trunk/src/interp.c 2004-03-31 15:07:37 UTC (rev 227) +++ trunk/src/interp.c 2004-03-31 15:08:35 UTC (rev 228) @@ -326,16 +326,20 @@ MODULE_EXTENSION); aprerr = apr_dso_load(&handle, dll_path, get_pr_head_pool()); - if (aprerr != APR_SUCCESS) + if (aprerr != APR_SUCCESS) { +#ifdef DEBUG_MODULES + printf("Failed finding dll: %s\n", apr_dso_error(handle, dll_path, sizeof(dll_path))); +#endif return FALSE; + } apr_snprintf(dll_path, sizeof(dll_path), "%s_dll_entry", module_name); aprerr = apr_dso_sym(&dll_entry, handle, dll_path); if (aprerr != APR_SUCCESS) { apr_dso_unload(handle); - raise_exception(ist, OBJ(INTERNAL_EXC), "Loadable module `%s': initialization failed", - module_name); - printf("Failed finding dll entry symbol: %s\n", apr_dso_error(handle, dll_path, sizeof(dll_path))); + raise_exception(ist, OBJ(INTERNAL_EXC), "Loadable module `%s': %s", + module_name, apr_dso_error(handle, dll_path, + sizeof(dll_path))); return FALSE; }
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | rev 227 - in trunk: include/prothon src, SVN User |
|---|---|
| Next by Date: | rev 229 - trunk/src, SVN User |
| Previous by Thread: | rev 227 - in trunk: include/prothon src, SVN User |
| Next by Thread: | rev 229 - trunk/src, SVN User |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |