throw bad role error, handle in error in template