--- loncom/interface/lonmysql.pm	2004/03/03 17:19:06	1.19
+++ loncom/interface/lonmysql.pm	2004/04/19 21:29:15	1.20
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # MySQL utility functions
 #
-# $Id: lonmysql.pm,v 1.19 2004/03/03 17:19:06 matthew Exp $
+# $Id: lonmysql.pm,v 1.20 2004/04/19 21:29:15 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -714,7 +714,8 @@ sub create_table {
     #############################################
     my $count = $dbh->do($request);
     if (! defined($count)) {
-        $errorstring = "$dbh ATTEMPTED:\n".$request."\nRESULTING ERROR:\n";
+        $errorstring = "$dbh ATTEMPTED:\n".$request."\nRESULTING ERROR:\n".
+            $dbh->errstr();
         return undef;
     }
     #