From 25958b123f91e0e00d5360ead2bbb379199a15fe Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Sun, 11 Dec 2022 06:07:39 -0800 Subject: [PATCH] Make config error message more helpful --- inquisitor/configs/resolver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inquisitor/configs/resolver.py b/inquisitor/configs/resolver.py index 9758df9..fab7f5c 100644 --- a/inquisitor/configs/resolver.py +++ b/inquisitor/configs/resolver.py @@ -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: