better error message for no such template label