Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
0d2bce15
Commit
0d2bce15
authored
May 31, 2016
by
Davis King
Browse files
Made the mex wrapper trap all std::exception derived exceptions rather than
just dlib exceptions.
parent
623fba97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dlib/matlab/mex_wrapper.cpp
dlib/matlab/mex_wrapper.cpp
+1
-1
No files found.
dlib/matlab/mex_wrapper.cpp
View file @
0d2bce15
...
@@ -2907,7 +2907,7 @@ namespace mex_binding
...
@@ -2907,7 +2907,7 @@ namespace mex_binding
{
{
// do nothing, just return to matlab
// do nothing, just return to matlab
}
}
catch
(
dlib
::
error
&
e
)
catch
(
std
::
exception
&
e
)
{
{
mexErrMsgIdAndTxt
(
"mex_function:error"
,
mexErrMsgIdAndTxt
(
"mex_function:error"
,
e
.
what
());
e
.
what
());
...
...
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