From: Dagfinn Ilmari Mannsåker Date: Wed, 30 May 2007 11:31:47 +0000 (-0500) Subject: Merge 'trunk' into 'DBIx-Class-current' X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8a89a03cad87b903e938825ec45b6b2c48db53c5;p=dbsrgits%2FDBIx-Class-Historic.git Merge 'trunk' into 'DBIx-Class-current' r32073@brandon-blacks-computer (orig r3439): ilmari | 2007-05-30 06:31:47 -0500 Include the DBI error message if a deploy statement fails. --- 8a89a03cad87b903e938825ec45b6b2c48db53c5 diff --cc lib/DBIx/Class/Storage/DBI.pm index 27b115b,1c43c71..14a8f61 --- a/lib/DBIx/Class/Storage/DBI.pm +++ b/lib/DBIx/Class/Storage/DBI.pm @@@ -1441,7 -1125,7 +1441,7 @@@ sub deploy next if($_ =~ /^COMMIT/m); next if $_ =~ /^\s+$/; # skip whitespace only $self->debugobj->query_start($_) if $self->debug; - $self->dbh->do($_) or warn "SQL was:\n $_"; # XXX exceptions? - $self->dbh->do($_) or warn $self->dbh->errstr, "\nSQL was:\n $_"; ++ $self->dbh->do($_) or warn $self->dbh->errstr, "\nSQL was:\n $_"; # XXX throw_exception? $self->debugobj->query_end($_) if $self->debug; } }