Skip to content

Commit

Permalink
replace uenv image create with uenv image repo in error message (#25
Browse files Browse the repository at this point in the history
)

Calls to `uenv start` that fail because no uenv repository exists print an error message that suggests the user create a new repository with `uenv image create`, which was replaced with `uenv image repo`.

Fix the error message to be the same as the one for calls to `uenv image *`.
  • Loading branch information
bcumming authored May 21, 2024
1 parent bae3315 commit 3455a4a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions uenv-impl
Original file line number Diff line number Diff line change
Expand Up @@ -636,9 +636,11 @@ def parse_image_descriptions(mnt_list, repo, uarch):
try:
fscache = datastore.FileSystemRepo(repo_path)
except datastore.RepoNotFoundError as err:
terminal.error(f"""The local repository {repo_path} does not exist.
The repo can be created using the following command:
{colorize(f"uenv image -r {repo_path} create", "white")}
terminal.error(f"""The local repository {path} does not exist.
If this is your first time using uenv, a repo in the default location can be created with this command:
{colorize(f"uenv image repo", "white")}
If you want to create a repo in a custom location, provide the path as follows:
{colorize(f"uenv image repo {repo_path}", "white")}
""", abort=False)
return []
except datastore.RepoDBError as err:
Expand Down

0 comments on commit 3455a4a

Please sign in to comment.