Custom Error Message from throwError Not Displayed in UI - additional question

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 :+1: @dogan.ay

But the very same problem happens with the “load” hook as well :sweat_smile:

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 :folded_hands:
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 :folded_hands:

Hello @Matteo,

I’ll add support for the load and search hooks as well, hoping that would cover all your cases.

Keeping you updated once it’s live.

Best regards,

:rocket:
Thank you @dogan.ay

This is truly very much appreciated :folded_hands:

Matteo

You should have the expected behaviour after refreshing your page :slight_smile:

Thank you @dogan.ay!!

:100:

Now this works :folded_hands: