Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mpsd-software-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MPSD Computational Science
mpsd-software-manager
Commits
1ea3916f
Commit
1ea3916f
authored
1 year ago
by
Hans Fangohr
Browse files
Options
Downloads
Patches
Plain Diff
modify error message
parent
81e915f3
No related branches found
No related tags found
1 merge request
!104
Improve error if current directory (or parents) are not MPSD software instance
Pipeline
#375369
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mpsd_software_manager/mpsd_software.py
+8
-8
8 additions, 8 deletions
src/mpsd_software_manager/mpsd_software.py
with
8 additions
and
8 deletions
src/mpsd_software_manager/mpsd_software.py
+
8
−
8
View file @
1ea3916f
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment