unlink($filename);
}
- my $custom_content = (-f $filename)
- ? $self->_get_custom_content($filename)
- : undef;
+ my $custom_content = $self->_get_custom_content($filename);
$custom_content ||= qq|\n# You can replace this text with custom|
. qq| content, and it will be preserved on regeneration|
}
}
- if(!$found) {
- }
+ croak "Cannot not overwrite '$filename' without 'dump_overwrite',"
+ " it does not appear to have been generated by Loader";
+ if !$found;
+
return $buffer;
}