]> source.dussan.org Git - gitea.git/commit
Place wrapper around comment as diff to catch panics (#15085)
authorzeripath <art27@cantab.net>
Sun, 21 Mar 2021 16:59:58 +0000 (16:59 +0000)
committerGitHub <noreply@github.com>
Sun, 21 Mar 2021 16:59:58 +0000 (16:59 +0000)
commit46782d53bc2ad721cc0337417391d89748f37a5d
tree0ef0d6fe9322fc4d15baa38bcb7f3a4ceb52b41f
parent24f7bd589945c8fc22c9cfc00bc21fca679da9d0
Place wrapper around comment as diff to catch panics (#15085)

There are a few recurrent issues with comment as diff reporting panics that are resistant to fixing due to the fact that the panic occurs in the template render and is swallowed by the template renderer.

This PR just adds some logging to force the panic to properly logged and re-propagates back up to the template renderer so we can actually detect what the issue is.

Signed-off-by: Andrew Thornton art27@cantab.net
services/gitdiff/gitdiff.go