Message to User

Message to User

I have a Custom Action that should only be used by the Administrator for debugging purposes. I've written the script for this so it only executes the important part of the logged in user is the Administrator. The problem is that the system gives any user the message that it was succesful, even though nothing in the data changed. Is it possible to give the user a specific message like this?
 
  1. if (zoho.adminuser == zoho.loginuser)
  2. {
  3.     do_the_thing;
  4. }
  5. else
  6. {
  7.     message "Sorry, only the Administrator can do this.";
  8. }
Thanks.