Using cvError to log the error.