Commit 0d2bce15 authored by Davis King's avatar Davis King

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

just dlib exceptions.
parent 623fba97
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment