From 4791d8f0af300b88dfd0500480b47f8279e356b6 Mon Sep 17 00:00:00 2001 From: Thomas Schulz Date: Tue, 8 Nov 2016 17:17:33 +0100 Subject: [PATCH] face: Fix error message on failed loading attempt --- modules/face/src/facerec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/face/src/facerec.cpp b/modules/face/src/facerec.cpp index b9e062e34..1b1d6398c 100644 --- a/modules/face/src/facerec.cpp +++ b/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(); }