@@ -67,7 +67,7 @@ void check_failed_auto_(const T& v1, const T& v2, const CheckContext& ctx)
6767 ss << " must be " << getTestOpPhraseStr (ctx.testOp ) << std::endl;
6868 }
6969 ss << " '" << ctx.p2_str << " ' is " << v2;
70- cv::errorNoReturn (cv::Error::StsError, ss.str (), ctx.func , ctx.file , ctx.line );
70+ cv::error (cv::Error::StsError, ss.str (), ctx.func , ctx.file , ctx.line );
7171}
7272void check_failed_MatDepth (const int v1, const int v2, const CheckContext& ctx)
7373{
@@ -79,7 +79,7 @@ void check_failed_MatDepth(const int v1, const int v2, const CheckContext& ctx)
7979 ss << " must be " << getTestOpPhraseStr (ctx.testOp ) << std::endl;
8080 }
8181 ss << " '" << ctx.p2_str << " ' is " << v2 << " (" << depthToString (v2) << " )" ;
82- cv::errorNoReturn (cv::Error::StsError, ss.str (), ctx.func , ctx.file , ctx.line );
82+ cv::error (cv::Error::StsError, ss.str (), ctx.func , ctx.file , ctx.line );
8383}
8484void check_failed_MatType (const int v1, const int v2, const CheckContext& ctx)
8585{
@@ -91,7 +91,7 @@ void check_failed_MatType(const int v1, const int v2, const CheckContext& ctx)
9191 ss << " must be " << getTestOpPhraseStr (ctx.testOp ) << std::endl;
9292 }
9393 ss << " '" << ctx.p2_str << " ' is " << v2 << " (" << typeToString (v2) << " )" ;
94- cv::errorNoReturn (cv::Error::StsError, ss.str (), ctx.func , ctx.file , ctx.line );
94+ cv::error (cv::Error::StsError, ss.str (), ctx.func , ctx.file , ctx.line );
9595}
9696void check_failed_MatChannels (const int v1, const int v2, const CheckContext& ctx)
9797{
@@ -119,7 +119,7 @@ void check_failed_auto_(const T& v, const CheckContext& ctx)
119119 << " '" << ctx.p2_str << " '" << std::endl
120120 << " where" << std::endl
121121 << " '" << ctx.p1_str << " ' is " << v;
122- cv::errorNoReturn (cv::Error::StsError, ss.str (), ctx.func , ctx.file , ctx.line );
122+ cv::error (cv::Error::StsError, ss.str (), ctx.func , ctx.file , ctx.line );
123123}
124124void check_failed_MatDepth (const int v, const CheckContext& ctx)
125125{
@@ -128,7 +128,7 @@ void check_failed_MatDepth(const int v, const CheckContext& ctx)
128128 << " '" << ctx.p2_str << " '" << std::endl
129129 << " where" << std::endl
130130 << " '" << ctx.p1_str << " ' is " << v << " (" << depthToString (v) << " )" ;
131- cv::errorNoReturn (cv::Error::StsError, ss.str (), ctx.func , ctx.file , ctx.line );
131+ cv::error (cv::Error::StsError, ss.str (), ctx.func , ctx.file , ctx.line );
132132}
133133void check_failed_MatType (const int v, const CheckContext& ctx)
134134{
@@ -137,7 +137,7 @@ void check_failed_MatType(const int v, const CheckContext& ctx)
137137 << " '" << ctx.p2_str << " '" << std::endl
138138 << " where" << std::endl
139139 << " '" << ctx.p1_str << " ' is " << v << " (" << typeToString (v) << " )" ;
140- cv::errorNoReturn (cv::Error::StsError, ss.str (), ctx.func , ctx.file , ctx.line );
140+ cv::error (cv::Error::StsError, ss.str (), ctx.func , ctx.file , ctx.line );
141141}
142142void check_failed_MatChannels (const int v, const CheckContext& ctx)
143143{
0 commit comments