From: Robert Buels Date: Tue, 20 Apr 2010 19:20:06 +0000 (+0000) Subject: do not croak, rbuels! jeez. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3f179f6b8a973c963aafa6059319467b2aa63980;p=dbsrgits%2FDBIx-Class-Historic.git do not croak, rbuels! jeez. --- diff --git a/lib/DBIx/Class/Storage/DBI.pm b/lib/DBIx/Class/Storage/DBI.pm index e2d0b41..8e303b8 100644 --- a/lib/DBIx/Class/Storage/DBI.pm +++ b/lib/DBIx/Class/Storage/DBI.pm @@ -2338,7 +2338,7 @@ sub create_ddl_dir { $dir = './'; } else { -d $dir or File::Path::mkpath($dir) - or croak "create_ddl_dir: could not create dir '$dir'"; + or $self->throw_exception("create_ddl_dir: $! creating dir '$dir'"); } $self->throw_exception ("Directory '$dir' does not exist\n") unless(-d $dir);