mirror of https://github.com/davisking/dlib.git
Made the mex wrapper trap all std::exception derived exceptions rather than
just dlib exceptions.
This commit is contained in:
parent
623fba97fe
commit
0d2bce15ff
|
@ -2907,7 +2907,7 @@ namespace mex_binding
|
|||
{
|
||||
// do nothing, just return to matlab
|
||||
}
|
||||
catch (dlib::error& e)
|
||||
catch (std::exception& e)
|
||||
{
|
||||
mexErrMsgIdAndTxt("mex_function:error",
|
||||
e.what());
|
||||
|
|
Loading…
Reference in New Issue