mirror of
https://github.com/opencv/opencv.git
synced 2025-01-23 01:53:13 +08:00
Merge pull request #15220 from thangktran:fixbug/confusing_error_message_from_persistence
This commit is contained in:
commit
95eb199f41
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user