Capture the PreCondition error
Options
Wayne
Member ✭
Is it possible to capture the error raised by the PreCondition function for logging purposes.
Currently the stack breaks on a PreCondition failure and returns the error.
In this case I would want the stack to keep running but may return some other value and a 200 http error code.
I know an IF...Condition would probably work, but just thinking out aloud.🙂
Currently the stack breaks on a PreCondition failure and returns the error.
In this case I would want the stack to keep running but may return some other value and a 200 http error code.
I know an IF...Condition would probably work, but just thinking out aloud.🙂
Comments
-
You can add a payload to the precondition for when it fails... but yes I think an IF... Then... Else condition would make the more sense for this use case
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback