From: Dagfinn Ilmari Mannsåker Date: Fri, 8 Dec 2017 11:14:06 +0000 (+0000) Subject: Make maybe_plan skip on unrecognised failures to load modules X-Git-Tag: v0.11024~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c481687c7e9dca6b9a819b1aacdb6091130c7d26;p=dbsrgits%2FSQL-Translator.git Make maybe_plan skip on unrecognised failures to load modules --- diff --git a/Changes b/Changes index b4f7116..8883e09 100644 --- 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 diff --git a/lib/Test/SQL/Translator.pm b/lib/Test/SQL/Translator.pm index 9856350..67dc4f9 100644 --- a/lib/Test/SQL/Translator.pm +++ b/lib/Test/SQL/Translator.pm @@ -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) {