From d659eb9327f9f5994e9484faff01716acb0537e5 Mon Sep 17 00:00:00 2001 From: Thang Tran Date: Sun, 4 Aug 2019 17:17:03 +0200 Subject: [PATCH] core: fixed error message to avoid confusion --- modules/core/src/persistence.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/persistence.cpp b/modules/core/src/persistence.cpp index ab684c98e6..15151c0b2b 100644 --- a/modules/core/src/persistence.cpp +++ b/modules/core/src/persistence.cpp @@ -716,7 +716,7 @@ public: else if(strncmp( bufPtr, xml_signature, strlen(xml_signature) ) == 0) fmt = FileStorage::FORMAT_XML; else if(strbufsize == bufOffset) - CV_Error(CV_BADARG_ERR, "Input file is empty"); + CV_Error(CV_BADARG_ERR, "Input file is invalid"); else CV_Error(CV_BADARG_ERR, "Unsupported file storage format");