Commit 975c5cde authored by Miroslav Kratochvil's avatar Miroslav Kratochvil
Browse files

check output of converters and throw julia errors in case something is wrong

fixes #102
parent f2410e40
......@@ -14,7 +14,7 @@ set_level_and_version(level, version) =
doc,
level,
version,
)
) == 0 && throw(ErrorException("Setting of level and version did not succeed"))
end
"""
......@@ -43,7 +43,8 @@ libsbml_convert(
opt,
)
end
ccall(sbml(:SBMLDocument_convert), Cint, (VPtr, VPtr), doc, props)
ccall(sbml(:SBMLDocument_convert), Cint, (VPtr, VPtr), doc, props) == 0 &&
throw(ErrorException("Conversion returned errors"))
end
end
......
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