Skip to content

Commit

Permalink
Merge pull request #572 from joewiz/revert-529-xqlint
Browse files Browse the repository at this point in the history
Revert "display xqlint errors" PR
  • Loading branch information
marmoure committed Jan 5, 2023
2 parents 3ea3fc8 + 899ffff commit d2dd7c5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/xquery-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,6 @@ eXide.edit.XQueryModeHelper = (function () {
},
contentType: "application/octet-stream",
success: function (data) {
if (data.result !== 'fail' && doc.error) {
data.result = 'fail';
data.error = doc.error;
}
var valid = $this.compileError(data, doc);
if (onComplete) {
onComplete.call(this, valid);
Expand Down Expand Up @@ -210,7 +206,6 @@ eXide.edit.XQueryModeHelper = (function () {
return;
}
$.log("Running xqlint...");
doc.error = false;
var session = doc.getSession();
var value = doc.getText();
var h = new JSONParseTreeHandler(value);
Expand All @@ -219,7 +214,6 @@ eXide.edit.XQueryModeHelper = (function () {
parser.parse_XQuery();
} catch(e) {
$.log("Error while parsing XQuery: %s", parser.getErrorMessage(e));
doc.error = parser.getErrorMessage(e);
if(e instanceof parser.ParseException) {
h.closeParseTree();
}
Expand Down Expand Up @@ -261,7 +255,6 @@ eXide.edit.XQueryModeHelper = (function () {
session.setAnnotations(annotations);
} catch(e) {
$.log("Error while processing ast: %s", e.message);
doc.error = doc.error || e.message;
}
};

Expand Down

0 comments on commit d2dd7c5

Please sign in to comment.