Commit 4791d8f0 authored by Thomas Schulz's avatar Thomas Schulz

face: Fix error message on failed loading attempt

parent f077f58e
......@@ -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();
}
......
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