update error message
This commit is contained in:
parent
eebf92ba58
commit
f9f730c426
@ -2245,7 +2245,7 @@ not_found:
|
|||||||
std::cerr << deviceTypes[t] << " ";
|
std::cerr << deviceTypes[t] << " ";
|
||||||
|
|
||||||
std::cerr << std::endl << " Device name: " << (deviceName.length() == 0 ? "any" : deviceName) << std::endl;
|
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;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user