Hi Evan, The error is logged only if it "reaches the top", that is, if it is not caught.
If the error shouldn't behave as such, can't you just catch it before? (and yes, potentially return wathever HTTP response you deem appropriate). Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 24 January 2018 at 03:22, Evan Lenz wrote: > Hello, > > My client has XQuery parameter-validation code which calls the error() > function when invalid parameters are supplied. This event gets written to > the error log. Is there a way to prevent this? > > I recognize the best practice is to return a more appropriate HTTP > response code (than 500) when handling invalid input. I also recognize this > is anathema to FP. But my question still stands: > > Is there a way to interrupt/exit a query without triggering an Error-level > log message? > > Thanks, > > Evan Lenz > President, Lenz Consulting Group, Inc. > http://lenzconsulting.com > > _______________________________________________ > General mailing list > General@developer.marklogic.com > Manage your subscription at: > http://developer.marklogic.com/mailman/listinfo/general > >
_______________________________________________ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general