Feature(s) impacted
Custom Error Message from throwError is not Displayed in UI.
In a smart action code, we’re calling ctx.throwErrorwith an error message to run a business validation on form change.
We can see our error message in the server logs, but the the Forest UI shows a generic error.
Already opened a ticket a few days ago: Custom Error Message from throwError Not Displayed in UI
Observed behavior
Custom Error Message from throwError is not Displayed in UI with the “load” hook.
With the “change” hook now it works - see Custom Error Message from throwError Not Displayed in UI
@dogan.ay
But the very same problem happens with the “load” hook as well ![]()
Expected behavior
Custom Error Message from throwError is Displayed in UI evn for the “load” hook.
Context
- Agent technology: (nodejs)
- Agent (forest package) name & version (from your .lock file):
@forestadmin/agent 1.65.0
Conclusion
If you may improve the load hook as well it would be greatly appreciated ![]()
We’re using the load hook to have some check on the data and saying to the user wich actually is the possible problem is a very valuable feature.
Thank you ![]()