Skip to content

Commit

Permalink
Merge pull request #269 from sbmlteam/matlab-issue-268
Browse files Browse the repository at this point in the history
 #268 provide detailed error message on failure
  • Loading branch information
skeating committed Aug 31, 2022
2 parents 6596dfd + 5b77329 commit 03a6dd7
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 03a6dd7

Please sign in to comment.