]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/Common.pm
cleanup_eval_fail should match all croak messages; was missing /m
[debbugs.git] / Debbugs / Common.pm
index fdf67923efc9721db2ae52da71044af328b0e3d3..6deaf4a73a400f8602fb1f601bd0371106636eb2 100644 (file)
@@ -937,7 +937,7 @@ sub cleanup_eval_fail {
     # ditch the "at foo/bar/baz.pm line 5"
     $error =~ s/\sat\s\S+\sline\s\d+//;
     # ditch croak messages
-    $error =~ s/^\t+.+\n?//g;
+    $error =~ s/^\t+.+\n?//mg;
     # ditch trailing multiple periods in case there was a cascade of
     # die messages.
     $error =~ s/\.+$/\./;