adapted error patterns script to the latest changes