]> Sergey Matveev's repositories - public-inbox.git/commitdiff
viewvcs: do not show final error message twice
authorEric Wong <e@80x24.org>
Sun, 27 Jan 2019 03:32:01 +0000 (03:32 +0000)
committerEric Wong <e@80x24.org>
Sun, 27 Jan 2019 03:32:01 +0000 (03:32 +0000)
SolverGit::ERR already writes the exception to the debug
log before calling {user_cb}, so there's no need for viewvcs
to append it.

lib/PublicInbox/ViewVCS.pm

index fa76086a466a4bc1fa25a514d7386266e452e8a3..5de37ee6afba06b28c94499db2a69d8354e1d166 100644 (file)
@@ -46,7 +46,6 @@ sub solve_result {
        $log = do { local $/; <$log> };
 
        my $ref = ref($res);
-       $log .= $res unless $ref;
        my $l = PublicInbox::Linkify->new;
        $l->linkify_1($log);
        $log = '<pre>debug log:</pre><hr /><pre>' .