mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-30 19:03:01 +01:00
Update the guidance in the error message if config is not set
This commit is contained in:
parent
7db97d8aa9
commit
a71440f62a
1 changed files with 4 additions and 2 deletions
|
@ -34,11 +34,13 @@ logger = logging.getLogger(__name__)
|
||||||
def configure_server(args, required=False):
|
def configure_server(args, required=False):
|
||||||
if args.config is None:
|
if args.config is None:
|
||||||
if required:
|
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)
|
sys.exit(1)
|
||||||
else:
|
else:
|
||||||
logger.warning(
|
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
|
return
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue