Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LCSB-BioCore
SBML.jl
Commits
975c5cde
Commit
975c5cde
authored
Jul 01, 2021
by
Miroslav Kratochvil
Browse files
check output of converters and throw julia errors in case something is wrong
fixes #102
parent
f2410e40
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/converters.jl
View file @
975c5cde
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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