X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FTest%2FSQL%2FTranslator.pm;fp=lib%2FTest%2FSQL%2FTranslator.pm;h=0181156a1d94fff836a169bbca4bea4d389a423f;hb=9d226a8fb2ea12e3880f9adce21c196baf27110e;hp=67dc4f9d9a90acd5fde450a13e576798b853fff3;hpb=fae59414f1a4baaf3f532f8a61698856ccef8fce;p=dbsrgits%2FSQL-Translator.git diff --git a/lib/Test/SQL/Translator.pm b/lib/Test/SQL/Translator.pm index 67dc4f9..0181156 100644 --- a/lib/Test/SQL/Translator.pm +++ b/lib/Test/SQL/Translator.pm @@ -466,7 +466,8 @@ sub maybe_plan { push @errors, $module; } else { - push @errors, "$module: $@"; + (my $err = $@) =~ s/\n+/\\n/g; # Can't have newlines in the skip message + push @errors, "$module: $err"; } }