Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matlab OutputSBML fails with nondescript error #268

Closed
tpfau opened this issue Aug 31, 2022 · 1 comment
Closed

Matlab OutputSBML fails with nondescript error #268

tpfau opened this issue Aug 31, 2022 · 1 comment

Comments

@tpfau
Copy link

tpfau commented Aug 31, 2022

Hi,

I'm currently encountering a situation, where the OutputSBML function in matlab fails with a nondescript error "Failed to write file".
I'm wondering, whether it would be possible to make this output a bit more verbose.
From my understanding, this could probably be done by retrieving the actual error log and appending it to the string of the error message.
Something along the lines

SBMLErrorLog *log = sbmlDocument.getErrorLog();
reportError("OutputSBML:writeFile", log->toString(), gv);

instead of the original:

reportError("OutputSBML:writeFile", "Failed to write file", gv);

This would allow to better understand what might be going wrong, as I currently have no idea, where things might be going wrong since the struct itself seems to be fine.

skeating added a commit that referenced this issue Aug 31, 2022
 #268 provide detailed error message on failure
@skeating
Copy link
Member

added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants