From f9a09f604df73297388af442114d14346dc30d46 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 1 Jun 2020 10:06:47 +0000 Subject: v2writable: fix non-sensical interpolation in BUG message No point in attempting to print the value of an undefined variable if there's a bug. Fortunately, (AFAIK) we've never hit that bug check :> --- lib/PublicInbox/V2Writable.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm index b393b31f..1a824531 100644 --- a/lib/PublicInbox/V2Writable.pm +++ b/lib/PublicInbox/V2Writable.pm @@ -182,7 +182,7 @@ sub _add { my ($num, $mid0) = v2_num_for($self, $mime); defined $num or return; # duplicate - defined $mid0 or die "BUG: $mid0 undefined\n"; + defined $mid0 or die "BUG: \$mid0 undefined\n"; my $im = $self->importer; my $smsg = bless { mid => $mid0, num => $num }, 'PublicInbox::Smsg'; my $cmt = $im->add($mime, undef, $smsg); # sets $smsg->{ds|ts|blob} -- cgit v1.2.3-24-ge0c7