Added todo

This commit is contained in:
Asaf Gartner 2021-05-25 16:51:49 +03:00
parent 48dfb61997
commit 60b5d07d00
1 changed files with 1 additions and 0 deletions

View File

@ -896,6 +896,7 @@ func PathSafeTitle(title string) string {
return title
}
// TODO(asaf): Find a nicer solution that doesn't require adding a defer to every construction function while also not printing errors in tests.
func CatchPanic() {
if !isTest {
if recovered := recover(); recovered != nil {