Skip to content
Snippets Groups Projects
Commit b5c5c4b3 authored by Hans Fangohr's avatar Hans Fangohr
Browse files

Another place where the nice rich red error message might be useful.

parent 277bdca8
No related branches found
No related tags found
1 merge request!105Use `logging.error` for error message
Pipeline #375424 passed
......@@ -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