Skip to content

Commit

Permalink
Use logging method not "print" for fatal error
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed Jan 7, 2017
1 parent 5e5d5f5 commit 4dcbf0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/system.js
Expand Up @@ -26,10 +26,10 @@ CSL.setupXml = function(xmlObject) {
parser = new CSL.XmlJSON(xmlObject);
}
} else {
print("OUCH!");
CSL.error("unable to parse XML input");
}
if (!parser) {
throw "citeproc-js error: unable to parse style or locale object";
throw "citeproc-js error: unable to parse CSL style or locale object";
}
return parser;
}

0 comments on commit 4dcbf0c

Please sign in to comment.