mirror of
https://github.com/opencv/opencv.git
synced 2025-07-28 16:25:01 +08:00
Merge pull request #8596 from nnorwitz:nnorwitz
This commit is contained in:
commit
17eef4d8a9
@ -859,9 +859,10 @@ void error( const Exception& exc )
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
const char* errorStr = cvErrorStr(exc.code);
|
const char* errorStr = cvErrorStr(exc.code);
|
||||||
char buf[1 << 16];
|
char buf[1 << 12];
|
||||||
|
|
||||||
sprintf( buf, "OpenCV Error: %s (%s) in %s, file %s, line %d",
|
snprintf( buf, sizeof(buf),
|
||||||
|
"OpenCV Error: %s (%s) in %s, file %s, line %d",
|
||||||
errorStr, exc.err.c_str(), exc.func.size() > 0 ?
|
errorStr, exc.err.c_str(), exc.func.size() > 0 ?
|
||||||
exc.func.c_str() : "unknown function", exc.file.c_str(), exc.line );
|
exc.func.c_str() : "unknown function", exc.file.c_str(), exc.line );
|
||||||
fprintf( stderr, "%s\n", buf );
|
fprintf( stderr, "%s\n", buf );
|
||||||
|
Loading…
Reference in New Issue
Block a user