Describe the bug
On production mode, the error window is not showing the custom message that was set, just the error code.

Expected behavior
No response
Minimal reproducible example
On the demo, setting production mode and clicking Throw Error with custom message
Add-on Version
4.0.1
Vaadin Version
24
Additional information
No response