Author: kwilliams
Date: Sun Aug 20 18:33:29 2006
New Revision: 6818

Modified:
   Module-Build/trunk/Changes
   Module-Build/trunk/lib/Module/Build/Version.pm

Log:
eval() and die() rather than just eval()ing

Modified: Module-Build/trunk/Changes
==============================================================================
--- Module-Build/trunk/Changes  (original)
+++ Module-Build/trunk/Changes  Sun Aug 20 18:33:29 2006
@@ -13,6 +13,10 @@
  - Added a contrib/ directory with a bash completion function for M::B
    actions and switches. [Julian Mehnle]
 
+ - When we eval() the embedded version.pm code we will now die() if
+   the eval() was unsuccessful, rather than continuing blindly on and
+   dying mysteriously later.
+
 0.2805  Sat Jul 29 22:01:24 CDT 2006
 
  - We now embed a copy of version.pm right in the

Modified: Module-Build/trunk/lib/Module/Build/Version.pm
==============================================================================
--- Module-Build/trunk/lib/Module/Build/Version.pm      (original)
+++ Module-Build/trunk/lib/Module/Build/Version.pm      Sun Aug 20 18:33:29 2006
@@ -25,9 +25,9 @@
 
     # but we eval them in reverse order since version depends on
     # version::vpp to already exist
-    eval $vpp;
+    eval $vpp; die $@ if $@;
     $INC{'version/vpp.pm'} = 'inside Module::Build::Version';
-    eval $version;
+    eval $version; die $@ if $@;
     $INC{'version.pm'} = 'inside Module::Build::Version';
 }
 

Reply via email to