improved "checksum mismatch" error message with more explanation, and a pointer to...
Robert Buels [Fri, 1 Jan 2010 02:37:52 +0000 (02:37 +0000)]
lib/DBIx/Class/Schema/Loader/Base.pm

index b3a7376..d2275ea 100644 (file)
@@ -961,7 +961,7 @@ sub _get_custom_content {
             ($ver, $ts) = $buffer =~ m/# Created by DBIx::Class::Schema::Loader v(.*?) @ (.*?)$/s;
 
             $buffer .= $line;
-            croak "Checksum mismatch in '$filename'"
+            croak "Checksum mismatch in '$filename', the auto-generated part of the file has been modified outside of this loader.  Aborting.\nIf you want to overwrite these modifications, set the 'overwrite_modifications' loader option.\n"
                 if !$self->overwrite_modifications && Digest::MD5::md5_base64($buffer) ne $md5;
 
             $buffer = '';