fix error message for _get_token