A bit of refactoring to TcErrors