From 50d7c61c010dfeaf2c124aa6a4f98d9a214b9fb1 Mon Sep 17 00:00:00 2001 From: berak Date: Mon, 23 May 2022 19:18:31 +0200 Subject: [PATCH] Update darknet_importer.cpp make it more obvious, that this is a '404', not a 'parsing' problem --- modules/dnn/src/darknet/darknet_importer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dnn/src/darknet/darknet_importer.cpp b/modules/dnn/src/darknet/darknet_importer.cpp index 5d28dbd2e2..adbdd35b5d 100644 --- a/modules/dnn/src/darknet/darknet_importer.cpp +++ b/modules/dnn/src/darknet/darknet_importer.cpp @@ -207,7 +207,7 @@ Net readNetFromDarknet(const String &cfgFile, const String &darknetModel /*= Str std::ifstream cfgStream(cfgFile.c_str()); if (!cfgStream.is_open()) { - CV_Error(cv::Error::StsParseError, "Failed to parse NetParameter file: " + std::string(cfgFile)); + CV_Error(cv::Error::StsParseError, "Failed to open NetParameter file: " + std::string(cfgFile)); } if (darknetModel != String()) {