diff options
author | Eric Wong <e@80x24.org> | 2016-02-29 00:41:02 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-02-29 00:41:02 +0000 |
commit | 1c0cfc8726c1c5e4085ad43bdf533b91af88e971 (patch) | |
tree | 072d073fbdb1ea20a4ebcf6fee6bd482ba58c8f1 /lib/PublicInbox/WWW.pm | |
parent | e3fd8551e919b95a78f1f0ab0cfff12033291eeb (diff) | |
download | public-inbox-1c0cfc8726c1c5e4085ad43bdf533b91af88e971.tar.gz |
For error messages intended to show user error (e.g. giving invalid options), we add a newline ("\n") at the end to polluting the output with location information. However, for diagnosing non-user-triggered errors, we should show the location of where the error occured.
Diffstat (limited to 'lib/PublicInbox/WWW.pm')
-rw-r--r-- | lib/PublicInbox/WWW.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm index 2da819b1..98e33fd3 100644 --- a/lib/PublicInbox/WWW.pm +++ b/lib/PublicInbox/WWW.pm @@ -244,7 +244,7 @@ sub get_thread { sub ctx_get { my ($ctx, $key) = @_; my $val = $ctx->{$key}; - (defined $val && $val ne '') or die "BUG: bad ctx, $key unusable\n"; + (defined $val && $val ne '') or die "BUG: bad ctx, $key unusable"; $val; } |