catches tgrep2 errors