diff options
author | Eric Wong <e@80x24.org> | 2016-06-22 03:57:33 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-06-22 06:07:00 +0000 |
commit | 434f5d652a0ef43a850262429c1bce9881bd7d5f (patch) | |
tree | b0035dcc6d65ef110dfe394e30af345e03b88d88 /lib | |
parent | 16f8f397a4cb4f119f79b687dbaf38875a162dd1 (diff) | |
download | public-inbox-434f5d652a0ef43a850262429c1bce9881bd7d5f.tar.gz |
We want to ensure the actual message gets shown, and less important info does not destroy things.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/View.pm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 8d2e5424..2b6061ae 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -33,8 +33,13 @@ sub msg_html { $tip . multipart_text_as_html($mime, '') . '</pre><hr />' } elsif ($nr == 2) { - '<pre>' . html_footer($hdr, 1, $ctx) . - '</pre>' . msg_reply($ctx, $hdr); + # fake an EOF if generating the footer fails; + # we want to at least show the message if something + # here crashes: + eval { + '<pre>' . html_footer($hdr, 1, $ctx) . + '</pre>' . msg_reply($ctx, $hdr) + }; } else { undef } |