update error message

This commit is contained in:
Konstantin Matskevich 2014-03-19 12:14:48 +04:00
parent eebf92ba58
commit f9f730c426

View File

@ -2245,7 +2245,7 @@ not_found:
std::cerr << deviceTypes[t] << " ";
std::cerr << std::endl << " Device name: " << (deviceName.length() == 0 ? "any" : deviceName) << std::endl;
throw cv::Exception();
CV_Error(CL_INVALID_DEVICE, "Requested OpenCL device is not found");
return NULL;
}