mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
update error message
This commit is contained in:
parent
eebf92ba58
commit
f9f730c426
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user