TsLint: Fixed error logging

Using a Hack: A separate error class.