fix(privilege): raise exception for privilege with invalid name