rev 1416 - trunk/mariachi/lib/Mariachi

[prev] [thread] [next] [lurker] [Date index for 2003/10/15]

From: richardc
Subject: rev 1416 - trunk/mariachi/lib/Mariachi
Date: 23:51 on 15 Oct 2003
Author: richardc
Date: 2003-10-15 23:51:13 +0100 (Wed, 15 Oct 2003)
New Revision: 1416

Modified:
   trunk/mariachi/lib/Mariachi/DBI.pm
Log:
small error check


Modified: trunk/mariachi/lib/Mariachi/DBI.pm
===================================================================
--- trunk/mariachi/lib/Mariachi/DBI.pm	2003-10-15 22:30:44 UTC (rev 1415)
+++ trunk/mariachi/lib/Mariachi/DBI.pm	2003-10-15 22:51:13 UTC (rev 1416)
@@ -19,7 +19,8 @@
                  keys %{ $table->{fields} },
                 ) . " ) ";
         #warn $sql;
-        $self->db_Main->do( $sql );
+        $self->db_Main->do( $sql )
+          or die "couldn't create '$table->{name}': " . $self->db_Main->errstr;
     }
 
     # and now set up the tables and the has_a's

Generated at 13:57 on 01 Jul 2004 by mariachi 0.52