face: Fix error message on failed loading attempt

pull/845/head
Thomas Schulz 9 years ago
parent f077f58ecf
commit 4791d8f0af
  1. 2
      modules/face/src/facerec.cpp

@ -58,7 +58,7 @@ void FaceRecognizer::load(const String &filename)
{
FileStorage fs(filename, FileStorage::READ);
if (!fs.isOpened())
CV_Error(Error::StsError, "File can't be opened for writing!");
CV_Error(Error::StsError, "File can't be opened for reading!");
this->load(fs);
fs.release();
}

Loading…
Cancel
Save