Fix error message in controller guard