Make config error message more helpful

This commit is contained in:
Tim Van Baak 2022-12-11 06:07:39 -08:00
parent dd3a8016d3
commit 25958b123f
1 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,8 @@ def read_config_file(config_path):
"""
# Parse the config file into key-value pairs
if not os.path.isfile(config_path):
raise FileNotFoundError(f'No config file found at {config_path}')
raise FileNotFoundError(f'No config file found at {config_path}, try setting {CONFIG_ENVVAR}')
accumulated_configs = {}
current_key = None
with open(config_path, 'r', encoding='utf8') as cfg: