apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r1516842 - /apr/apr/trunk/test/dbd.c
Date Fri, 23 Aug 2013 13:21:56 GMT
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);



Mime
View raw message