From: Don Armstrong Date: Tue, 30 Jan 2007 08:17:08 +0000 (-0800) Subject: use carp to deprecate sani instead of warn X-Git-Tag: release/2.6.0~585^2^2~34 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=774ec679dec979a8489e9d5a77e4ec2380a3d38c;p=debbugs.git use carp to deprecate sani instead of warn --- diff --git a/scripts/errorlib.in b/scripts/errorlib.in index 79e306d4..18c13425 100755 --- a/scripts/errorlib.in +++ b/scripts/errorlib.in @@ -5,6 +5,7 @@ use Debbugs::MIME qw(decode_rfc1522 encode_rfc1522); use Debbugs::Packages qw(:all); use Debbugs::Common qw(:all); use Debbugs::Status qw(:all); +use Carp; sub unlockreadbugmerge { local ($rv) = @_; @@ -27,7 +28,7 @@ sub lockreadbugmerge { sub sani { my ($in) = @_; - warn "You should be using HTML::Entities instead."; + carp "You should be using HTML::Entities instead."; $in =~ s/([<>&"])/$saniarray{$1}/g; return $in; }