From: Don Armstrong Date: Mon, 19 Mar 2012 21:25:43 +0000 (-0700) Subject: clear croak messages in Debbugs::Common X-Git-Tag: release/2.6.0~411^2~3 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=7b3cdad55f83e0aa8cb68f6d724d7904bb410d65 clear croak messages in Debbugs::Common --- diff --git a/Debbugs/Common.pm b/Debbugs/Common.pm index 915fa85..283f33e 100644 --- a/Debbugs/Common.pm +++ b/Debbugs/Common.pm @@ -869,6 +869,8 @@ 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/^\s{3,}.+//g; # ditch trailing multiple periods in case there was a cascade of # die messages. $error =~ s/\.+$/\./;