Is there a way to customize the error message from the AllowAccess procedure?

It now only says: 'Error' 'Access denied'.
I want it to be a little bit less harsh and more personalized.

I know I can make a custom info box before the error message is shown,
but i want only my custom message to appear.
Not both my infobox and right after that the error message