Add reportError and reportWarning to TH