From: Robert Buels Date: Fri, 1 Jan 2010 02:37:52 +0000 (+0000) Subject: improved "checksum mismatch" error message with more explanation, and a pointer to... X-Git-Tag: 0.04999_13~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b4cc57937d35010c7de5925a010a5e02ce4d32f2;p=dbsrgits%2FDBIx-Class-Schema-Loader.git improved "checksum mismatch" error message with more explanation, and a pointer to the overwrite_modifications option --- diff --git a/lib/DBIx/Class/Schema/Loader/Base.pm b/lib/DBIx/Class/Schema/Loader/Base.pm index b3a7376..d2275ea 100644 --- a/lib/DBIx/Class/Schema/Loader/Base.pm +++ b/lib/DBIx/Class/Schema/Loader/Base.pm @@ -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 = '';