From a71440f62a1ca444be471e08bb6edb1ae8ac7597 Mon Sep 17 00:00:00 2001 From: sabaimran Date: Sat, 1 Jul 2023 19:09:00 -0700 Subject: [PATCH] Update the guidance in the error message if config is not set --- src/khoj/configure.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/khoj/configure.py b/src/khoj/configure.py index 050cf069..de543349 100644 --- a/src/khoj/configure.py +++ b/src/khoj/configure.py @@ -34,11 +34,13 @@ logger = logging.getLogger(__name__) def configure_server(args, required=False): if args.config is None: if required: - logger.error(f"Exiting as Khoj is not configured.\nConfigure it via GUI or by editing {state.config_file}.") + logger.error( + f"Exiting as Khoj is not configured.\nConfigure it via http://localhost:8000/config or by editing {state.config_file}." + ) sys.exit(1) else: logger.warning( - f"Khoj is not configured.\nConfigure it via khoj GUI, plugins or by editing {state.config_file}." + f"Khoj is not configured.\nConfigure it via http://localhost:8000/config, plugins or by editing {state.config_file}." ) return else: