Skip to content

Commit

Permalink
[MOD] RESTXQERRORS: Redirection of error output. Closes #2372
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianGruen committed Jan 31, 2025
1 parent 3c660b5 commit 3b5e80e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions basex-api/src/main/java/org/basex/http/web/WebModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.basex.query.*;
import org.basex.query.func.*;
import org.basex.util.*;
import org.basex.util.log.*;

/**
* This class caches information on a single XQuery module with relevant annotations.
Expand Down Expand Up @@ -69,6 +70,7 @@ void parse(final Context ctx) throws QueryException, IOException {
} catch(final QueryException ex) {
if(ctx.soptions.get(StaticOptions.RESTXQERRORS)) throw ex;
// ignore modules that cannot be parsed
ctx.log.writeServer(LogType.ERROR, Util.message(ex));
Util.debug(ex);
}
}
Expand Down

0 comments on commit 3b5e80e

Please sign in to comment.