Capture Smart Service Error Message from Expression
If a Smart Service has a onError argument, can I capture the error message of what went wrong? For example, the createUser SmartService has an onSuccess and onError arguments. In the onSuccess, I can capture the created user with fv!user. Which is great. But in the onError, I don't see anything that will tell me what went wrong.
I know the system knows what went wrong because if I happen to wrap the call to the createUser call in a WebAPI, I can see in the "Details" section of the "Smart Service Executed" response it says, "The username requested is not available". But I want to capture that text so that I can log/report it and I don't see a way to do that. I want to know more than "It failed". I want to be able to report what actually went wrong.
Thanks in advance,
Steve
