Show error message using script event handler

Hello, I’m using privacyidea 3.8.1: I want to block users from deleting their email token; I wasn’t able to achieve this using policies, so I tried with a script event handler (pre). It works, the script does a
raise Exception(“You are not allowed to delete this kind of token”)
but users sees only the generic error:
ERR903: Error during execution of the script.
Is there a way to show the user a message from the event handler script ?
Thank you

No, there is not.
I recommend rethinking and adapting your script.