In some predictable cases, a query will fail and user friendly messages could be given to the user to correct their mistake. Is there a way to catch this error in JavaScript like the ‘add-on error’ action in the action framework? When doing a try catch in JavaScript snippets, the error doesn’t get caught, and the jQuery promise is resolved.
I also tried subscribing to ‘models.load’ events but the event only fired on success of updateData() and it seems to consider an updateData() call a success even when the query error message pops up
loadedhttps://docs.skuid.com/latest/en/skuid/api/skuid_events.html?#skuid.events.models.loaded
PUBLISHED:
at the end of a successful call to model.updateData()