Skip to content
Snippets Groups Projects
Commit 1ee726e4 authored by Ashwin Kumar Karnad's avatar Ashwin Kumar Karnad
Browse files

Merge branch 'use-logging.error-to-report-error' into 'main'

Use `logging.error` for error message

See merge request !105
parents e3e56f76 b5c5c4b3
No related branches found
No related tags found
1 merge request!105Use `logging.error` for error message
Pipeline #375475 canceled
......@@ -1103,9 +1103,7 @@ def initialise_environment(root_dir: Path) -> None:
# check if the root_dir is not already initialized
init_file = root_dir / config_vars["init_file"]
if init_file.exists():
logging.getLogger("print").info(
f"Error: Directory {str(root_dir)} is already initialized."
)
logging.error(f"Directory {str(root_dir)} is already initialised.")
sys.exit(30)
else:
# create the init file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment