How to trigger the 'On Error' event in a button?
Hello everyone
I am a beginner, i am trying to implement the login functionality. How can I trigger the 'on error' event to display an error message when a user fails to log in ? (not a hardcoded message)
Thanks so much
8 Replies
your script must throw an error 🙂
I have thrown an error (in my script), but it still doesn't trigger the 'on event', is there any documentation for it? I couldn't find it 😦
It might be a bug, I will investigate asap (likely tomorrow)
the naive case seems to work:
Ah your message is empty
so of course it won't display anything 🙂
I understand your point, I will double-check, please wait for a moment 🙂
it worked, thank you very much. Can I retrieve the message from the error?
the error is in the component output
Okay, I understand. Thank you 👍