You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by tr...@apache.org on 2013/08/23 15:21:56 UTC

svn commit: r1516842 - /apr/apr/trunk/test/dbd.c

Author: trawick
Date: Fri Aug 23 13:21:55 2013
New Revision: 1516842

URL: http://svn.apache.org/r1516842
Log:
Provide more information for unexpected APU DSO load errors.

Modified:
    apr/apr/trunk/test/dbd.c

Modified: apr/apr/trunk/test/dbd.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/dbd.c?rev=1516842&r1=1516841&r2=1516842&view=diff
==============================================================================
--- apr/apr/trunk/test/dbd.c (original)
+++ apr/apr/trunk/test/dbd.c Fri Aug 23 13:21:55 2013
@@ -346,6 +346,7 @@ int main(int argc, char** argv)
     apr_pool_t *pool = NULL;
     apr_dbd_t *sql = NULL;
     const apr_dbd_driver_t *driver = NULL;
+    char errbuf[256];
     int rv;
 
     apr_initialize();
@@ -372,6 +373,7 @@ int main(int argc, char** argv)
            goto finish;
         default:        /* it's a bug if none of the above happen */
            printf("Internal error loading %s.\n", name);
+           printf("(%d)%s\n", rv, apr_strerror(rv, errbuf, sizeof errbuf));
            goto finish;
         }
         rv = apr_dbd_open(driver, pool, params, &sql);