Skip to content

Commit

Permalink
replace uenv image create with uenv image repo in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
bcumming committed Apr 22, 2024
1 parent bae3315 commit f67604a
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 f67604a

Please sign in to comment.