I have a try/catch in my server action where I want to show the $_ERROR.
This variable seems to not populate properly anymore. It doesn’t show the value when I try to log $_ERROR.
Reproduce
Create a try/catch
Put a query in the try, don’t set up any settings inside query so it’ll fail
Add a response step in teh catch where you add the $_ERROR to the ‘text’ property
Should look like this:
The problem is that in JavaScript an Error object is not serializable in JSON and is ignored. I added an extra replacer function for the JSON output that converts the Error object to a string. Easiest way to output an Error is by using the toString() formatter. I will investigate for some other solutions.