#60 Tell the user to read README.md when they haven't set their config.ini
Merged 3 years ago by mprahl. Opened 3 years ago by mprahl.

file modified
+4 -2
@@ -56,6 +56,8 @@ 

      try:

          return config.get(section, item)

      except (configparser.NoOptionError, configparser.NoSectionError):

-         error_msg = ('The "{0}" setting is not set in the "{1}" section'

-                      .format(item, section))

+         read_me_url = 'https://pagure.io/fedrepo_req/blob/master/f/README.md'

+         error_msg = ('The "{0}" setting is not set in the "{1}" section. '

+                      'Please read {2}.'

+                      .format(item, section, read_me_url))

          raise click.ClickException(error_msg)