Commit f9f730c4 authored by Konstantin Matskevich's avatar Konstantin Matskevich

update error message

parent eebf92ba
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment