Early stop predicate with a `true` value in Prolog
I am writing a http_server
application with http_session
s in Prolog. A request is handled with a dicontiguous
(multiple definitions) predicate app
, which must not fail (otherwise a 500 error appears to be given to the client). I need to early-quit the predicate somehow, so that the rest is not ran, but a custom message is shown and it ends without failure: