{{$NEXT}}
- Stop warning all the time (ribasushi)
+ - croak on a couple errors that should be fatal
- Stop deleting the wrong version (for downgrades)
- Fix documentation for in the Cookbook (moltar)
Dlog_trace { "Running Perl $_" } $fn;
if ($@) {
- carp "$filename failed to compile: $@";
+ croak "$filename failed to compile: $@";
} elsif (ref $fn eq 'CODE') {
$fn->($self->schema, $versions)
} else {
- carp "$filename should define an anonymouse sub that takes a schema but it didn't!";
+ croak "$filename should define an anonymouse sub that takes a schema but it didn't!";
}
}
use warnings;
if ($@) {
- carp "$filename failed to compile: $@";
+ croak "$filename failed to compile: $@";
} elsif (ref $fn eq 'CODE') {
$fn->()
} else {
- carp "$filename should define an anonymous sub but it didn't!";
+ croak "$filename should define an anonymous sub but it didn't!";
}
} else {
croak "A file ($filename) got to initialize_scripts that wasn't sql or perl!";