From 49b85d11c3abe03c9cea0209064e293a5b4620ea Mon Sep 17 00:00:00 2001 From: Chenxiong Qi Date: Mar 30 2018 14:06:37 +0000 Subject: Reword error message for missing pagure token Fixes #194 Signed-off-by: Chenxiong Qi --- diff --git a/fedpkg/utils.py b/fedpkg/utils.py index 81d3ff1..43ca0b6 100644 --- a/fedpkg/utils.py +++ b/fedpkg/utils.py @@ -210,9 +210,9 @@ def get_pagure_token(config, cli_name): try: return config.get(conf_section, 'token') except (NoSectionError, NoOptionError): - raise rpkgError('The "token" value must be set under the "{0}" ' - 'section in your "{1}" user configuration' - .format(conf_section, cli_name)) + raise rpkgError( + 'Missing a Pagure token. Refer to "{0} request-repo -h" to set a' + 'token in your user configuration.'.format(cli_name)) def is_epel(branch):