Make maybe_plan skip on unrecognised failures to load modules
[dbsrgits/SQL-Translator.git] / lib / Test / SQL / Translator.pm
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) {