Skip to content
Snippets Groups Projects
Commit 70a46884 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

catch(...) in gmshc, as string message is not used

parent cc1f9a43
Branches
Tags
No related merge requests found
...@@ -1278,7 +1278,7 @@ class API: ...@@ -1278,7 +1278,7 @@ class API:
fc.write(cpp_namespace + name + "(" + fc.write(cpp_namespace + name + "(" +
", ".join(list((a.c_arg for a in args))) + ");\n") ", ".join(list((a.c_arg for a in args))) + ");\n")
fc.write("".join((a.c_post for a in args))) fc.write("".join((a.c_post for a in args)))
fc.write(" }\n catch(const std::string &api_error_){\n " + fc.write(" }\n catch(...){\n " +
"if(ierr) *ierr = 1;\n }\n") "if(ierr) *ierr = 1;\n }\n")
if rtype: if rtype:
fc.write(" return result_api_;\n") fc.write(" return result_api_;\n")
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment