I stand corrected. CV_Error is different from CV_ERROR which needs CV_FUNCNAME to be included in the code (previously which I removed). :)