Add error message on exception. Use function to get access rights.