Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
dc1d9ae9
Commit
dc1d9ae9
authored
Mar 06, 2018
by
native-api
Committed by
Vadim Pisarevsky
Mar 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include error code description into the message (#10982)
parent
c219f97f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
system.cpp
modules/core/src/system.cpp
+2
-2
No files found.
modules/core/src/system.cpp
View file @
dc1d9ae9
...
...
@@ -248,9 +248,9 @@ const char* Exception::what() const throw() { return msg.c_str(); }
void
Exception
::
formatMessage
()
{
if
(
func
.
size
()
>
0
)
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
());
msg
=
format
(
"OpenCV(%s) %s:%d: error: (%d) %s
: %s in function %s
\n
"
,
CV_VERSION
,
file
.
c_str
(),
line
,
code
,
cvErrorStr
(
code
)
,
err
.
c_str
(),
func
.
c_str
());
else
msg
=
format
(
"OpenCV(%s) %s:%d: error: (%d) %s
\n
"
,
CV_VERSION
,
file
.
c_str
(),
line
,
code
,
err
.
c_str
());
msg
=
format
(
"OpenCV(%s) %s:%d: error: (%d) %s
: %s
\n
"
,
CV_VERSION
,
file
.
c_str
(),
line
,
code
,
cvErrorStr
(
code
)
,
err
.
c_str
());
}
static
const
char
*
g_hwFeatureNames
[
CV_HARDWARE_MAX_FEATURE
]
=
{
NULL
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment