Made the mex wrapper trap all std::exception derived exceptions rather than

just dlib exceptions.
This commit is contained in:
Davis King 2016-05-31 12:27:59 -04:00
parent 623fba97fe
commit 0d2bce15ff
1 changed files with 1 additions and 1 deletions

View File

@ -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());