X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole.pm;h=64e5a1a886c877d8aa59475426ff63f7f9714070;hb=1194fb590c7566bf936be64155db24275e263ff6;hp=7b17858b849ffdd4fa9c63374e09ee215db0df07;hpb=43c32b954aa111a98b2d886f0f9c4cf18fe8dd3c;p=maypole.git diff --git a/lib/Maypole.pm b/lib/Maypole.pm index 7b17858..64e5a1a 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -275,7 +275,7 @@ documentation. However here is the most usage of setup where Maypole::Model::CDBI is the base class. My::App->setup($data_source, $user, $password, - { opitons => { # These are DB connection options + { options => { # These are DB connection options AutoCommit => 0, RaiseError => 1, ... @@ -592,7 +592,7 @@ sub handler_guts if ( my $error = $@ ) { $status = $self->call_exception($error, "model"); - if ( $status != OK ) + if ( $status != OK ) { warn "caught model error: $error"; return $self->debug ?