Changed error reporting to errorPatterns instead of stderr