Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LCSB-BioCore
SBML.jl
Commits
63c09484
Unverified
Commit
63c09484
authored
Jul 19, 2021
by
Miroslav Kratochvil
🚴
Committed by
GitHub
Jul 19, 2021
Browse files
Merge pull request #126 from giordano/mg/operation-return-value
Fix checking of errors in `libsbml_convert`
parents
68e0e0b5
fa4446f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/converters.jl
View file @
63c09484
...
...
@@ -46,7 +46,9 @@ libsbml_convert(
)
end
check_errors
(
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
)),
doc
,
ErrorException
(
"Conversion returned errors"
),
)
...
...
cylon-x
🤖
@cylon-x
mentioned in commit
fc0087d4
·
Jul 19, 2021
mentioned in commit
fc0087d4
mentioned in commit fc0087d4922dccf1711848e5b4c0456d8714c3f3
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment