Commit fa4446f0 authored by Mosè Giordano's avatar Mosè Giordano
Browse files

Fix checking of errors in `libsbml_convert`

The function
returns 0 when it is successful, other numbers otherwise.
parent 68e0e0b5
......@@ -46,7 +46,9 @@ libsbml_convert(
ccall(sbml(:SBMLDocument_convert), Cint, (VPtr, VPtr), doc, props),
# `SBMLDocument_convert` returns `LIBSBML_OPERATION_SUCCESS` (== 0) for a
# successful operation, something else when there is a failure.
iszero(ccall(sbml(:SBMLDocument_convert), Cint, (VPtr, VPtr), doc, props)),
ErrorException("Conversion returned errors"),
Supports Markdown
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