Fixing TeamCity error reporting