about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-01-24 09:49:37 +0000
committerEric Wong <e@80x24.org>2023-01-24 10:07:55 +0000
commit4c371ef706ba5d5d0487ff8a9e4b75d168a6e267 (patch)
tree74b3ae0f960f8dfd24a6248686d9ee1977674347
parentd03f31da89d568fa04c439bf9610c62348597e44 (diff)
downloadpublic-inbox-4c371ef706ba5d5d0487ff8a9e4b75d168a6e267.tar.gz
Since the debug log isn't present from the /$REPO/ URLs,
the lack of debug log makes 404s look confusing.
-rw-r--r--lib/PublicInbox/ViewVCS.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/PublicInbox/ViewVCS.pm b/lib/PublicInbox/ViewVCS.pm
index 0dfe6081..99f5e24f 100644
--- a/lib/PublicInbox/ViewVCS.pm
+++ b/lib/PublicInbox/ViewVCS.pm
@@ -497,8 +497,9 @@ sub show_tag ($$) {
 sub solve_result {
         my ($res, $ctx) = @_;
         my $hints = delete $ctx->{hints};
-        $res or return html_page($ctx, 404, dbg_log($ctx));
-        ref($res) eq 'ARRAY' or return html_page($ctx, 500, dbg_log($ctx));
+        $res or return html_page($ctx, 404, 'Not found', dbg_log($ctx));
+        ref($res) eq 'ARRAY' or
+                return html_page($ctx, 500, 'Internal error', dbg_log($ctx));
 
         my ($git, $oid, $type, $size, $di) = @$res;
         return show_commit($ctx, $res) if $type eq 'commit';