update error message

pull/2492/head
Konstantin Matskevich 11 years ago
parent eebf92ba58
commit f9f730c426
  1. 2
      modules/core/src/ocl.cpp

@ -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…
Cancel
Save