Skip to content

Commit

Permalink
#268 provide detailed error message on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Aug 31, 2022
1 parent 6596dfd commit 5b77329
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/bindings/matlab/OutputSBML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,10 @@ mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])

if (nStatus != 1)
{
reportError("OutputSBML:writeFile", "Failed to write file", gv);
std::stringstream str;
str << "Failed to write file" << std::endl << std::endl;
str << sbmlDocument.getErrorLog()->toString();
reportError("OutputSBML:writeFile", str.str(), gv);
}
else
{
Expand Down

0 comments on commit 5b77329

Please sign in to comment.