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

modify error message

parent 81e915f3
No related branches found
No related tags found
1 merge request!104Improve error if current directory (or parents) are not MPSD software instance
Pipeline #375369 passed
......@@ -1156,14 +1156,14 @@ def get_root_dir() -> Path:
logging.debug(f"Directory {str(script_call_dir)} is not a MPSD software instance.")
logging.error(
"Error: Could not find MPSD software instance "
"in the current directory or any parent directory.\n"
"Please run 'mpsd-software init' to "
"initialise the software instance here, "
"or switch to a directory which is already initialised.\n \n"
f"Hint: Look for the directory containing `{config_vars['cmd_log_file']}`"
+ f"and the hidden file `{config_vars['init_file']}`."
" to check if a directory is initialised."
"Could not find MPSD software instance "
"in the current directory or any parent directory.\n\n"
f"The current directory is {script_call_dir}.\n\n"
"To initialise a MPSD software instance here, "
"run 'mpsd-software init'.\n\n"
f"To find the root directory of an existing MPSD software instance, look "
f"for the directory containing '{config_vars['cmd_log_file']}' "
+ f"and the hidden file '{config_vars['init_file']}'."
)
sys.exit(40)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment