diff --git a/SBMLLint/common/util.py b/SBMLLint/common/util.py index ac50281..6aff821 100644 --- a/SBMLLint/common/util.py +++ b/SBMLLint/common/util.py @@ -86,5 +86,5 @@ def uniqueify(collection): def checkSBMLDocument(document, model_reference=""): if (document.getNumErrors() > 0): - raise ValueError("Errors in SBML document\n%s" - % model_reference) + raise ValueError("Errors in SBML document\n%s" + % model_reference, document.getErrorLog().toString()) diff --git a/SBMLLint/tools/sbmllint.py b/SBMLLint/tools/sbmllint.py index 15d8f23..112e686 100644 --- a/SBMLLint/tools/sbmllint.py +++ b/SBMLLint/tools/sbmllint.py @@ -46,7 +46,7 @@ def lint(model_reference, file_out=sys.stdout, xml = util.getXML(model_reference) reader = tesbml.SBMLReader() document = reader.readSBMLFromString(xml) - util.checkSBMLDocument(document) + util.checkSBMLDocument(document, model_reference) model = document.getModel() # if mass_balance_check==STRUCTURED_NAMES: