@@ -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 };
@@ -952,7 +952,8 @@ void error( const Exception& exc )
952
952
char buf[1 << 12 ];
953
953
954
954
cv_snprintf (buf, sizeof (buf),
955
- " OpenCV Error: %s (%s) in %s, file %s, line %d" ,
955
+ " OpenCV(%s) Error: %s (%s) in %s, file %s, line %d" ,
956
+ CV_VERSION,
956
957
errorStr, exc.err .c_str (), exc.func .size () > 0 ?
957
958
exc.func .c_str () : " unknown function" , exc.file .c_str (), exc.line );
958
959
fprintf ( stderr, " %s\n " , buf );
0 commit comments