[Bast-commits] r8209 - branches/DBIx-Class-Schema-Loader/current/lib/DBIx/Class/Schema/Loader

rbuels at dev.catalyst.perl.org rbuels at dev.catalyst.perl.org
Fri Jan 1 02:37:53 GMT 2010


Author: rbuels
Date: 2010-01-01 02:37:52 +0000 (Fri, 01 Jan 2010)
New Revision: 8209

Modified:
   branches/DBIx-Class-Schema-Loader/current/lib/DBIx/Class/Schema/Loader/Base.pm
Log:
improved "checksum mismatch" error message with more explanation, and a pointer to the overwrite_modifications option

Modified: branches/DBIx-Class-Schema-Loader/current/lib/DBIx/Class/Schema/Loader/Base.pm
===================================================================
--- branches/DBIx-Class-Schema-Loader/current/lib/DBIx/Class/Schema/Loader/Base.pm	2010-01-01 02:32:12 UTC (rev 8208)
+++ branches/DBIx-Class-Schema-Loader/current/lib/DBIx/Class/Schema/Loader/Base.pm	2010-01-01 02:37:52 UTC (rev 8209)
@@ -961,7 +961,7 @@
             ($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 = '';




More information about the Bast-commits mailing list