I have a lot of complex logic in function-based variables and custom Errors being proxied as UserFacingErrors so that the user gets the required info to fix their data.
If someone executes a function-based action type, this raises a Toast in Workshop that includes the error message. If a variable is calculated by a function, it only raises the error in the editing mode but in reality just does not update the variable itself. This can lead lead to issues e.g. a wrong visualization being displayed (function-computed vega chart) after changing a selected object, or input variables to another function having the wrong values.
The expected behavior would be that the variable is indeed updated with an Error Value or NULL value. Ideally, one could configure that in the variable setting itself: What if the function fails?
On-Fail Options could be:
- Raise Toast on failure (including the error message
- Replace last value with (static / alternative variable)
- implode the ontology

This would greatly enhance the robustness of the applications, reduce the amount of helper /util function evaluations just checking for errors etc.
Also there is currently not a single way to manually trigger a toast in Workshop - Warning messages in Yellow could also be very helpful…
Best
Florian