projects
/
dbsrgits/SQL-Translator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Escape newlines in skip reason
[dbsrgits/SQL-Translator.git]
/
lib
/
Test
/
SQL
/
Translator.pm
diff --git
a/lib/Test/SQL/Translator.pm
b/lib/Test/SQL/Translator.pm
index
67dc4f9
..
0181156
100644
(file)
--- 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";
}
}