@@ -249,9 +249,9 @@ const char* Exception::what() const throw() { return msg.c_str(); }
249
249
void Exception::formatMessage ()
250
250
{
251
251
if ( func.size () > 0 )
252
- msg = format (" %s :%d: error: (%d) %s in function %s\n " , file.c_str (), line, code, err.c_str (), func.c_str ());
252
+ msg = format (" OpenCV(%s) %s :%d: error: (%d) %s in function %s\n " , CV_VERSION , file.c_str (), line, code, err.c_str (), func.c_str ());
253
253
else
254
- msg = format (" %s :%d: error: (%d) %s\n " , file.c_str (), line, code, err.c_str ());
254
+ msg = format (" OpenCV(%s) %s :%d: error: (%d) %s\n " , CV_VERSION , file.c_str (), line, code, err.c_str ());
255
255
}
256
256
257
257
static const char * g_hwFeatureNames[CV_HARDWARE_MAX_FEATURE] = { NULL };
@@ -957,7 +957,8 @@ void error( const Exception& exc )
957
957
char buf[1 << 12 ];
958
958
959
959
cv_snprintf (buf, sizeof (buf),
960
- " OpenCV Error: %s (%s) in %s, file %s, line %d" ,
960
+ " OpenCV(%s) Error: %s (%s) in %s, file %s, line %d" ,
961
+ CV_VERSION,
961
962
errorStr, exc.err .c_str (), exc.func .size () > 0 ?
962
963
exc.func .c_str () : " unknown function" , exc.file .c_str (), exc.line );
963
964
fprintf ( stderr, " %s\n " , buf );
0 commit comments