Make maybe_plan skip on unrecognised failures to load modules
Dagfinn Ilmari Mannsåker [Fri, 8 Dec 2017 11:14:06 +0000 (11:14 +0000)]
Changes
lib/Test/SQL/Translator.pm

diff --git a/Changes b/Changes
index b4f7116..8883e09 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,7 @@
 Changes for SQL::Translator
 
+ * Make maybe_plan skip on unrecognised failures to load modules
+
 0.11023_01 2017-12-07
 
  * Add diagnostics to t/postgresql-rename-table-and-field.t that's
index 9856350..67dc4f9 100644 (file)
@@ -465,6 +465,9 @@ sub maybe_plan {
         elsif ($@ =~ /Can't load .+? for module .+?DynaLoader\.pm/i ) {
           push @errors, $module;
         }
+        else {
+            push @errors, "$module: $@";
+        }
     }
 
     if (@errors) {