Skip to content

Commit

Permalink
add error messages about cloning the repo, if LVEs cannot be found
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeurerkellner committed Dec 11, 2023
1 parent 1ae1a06 commit 934c1cc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lve-tools/lve_tools/lve/cli/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def main(args):
return 1
except NoSuchLVEError:
print(f"Error: The template LVE at {args.template} does not exist.")
print("\nMake sure you have cloned a copy of an LVE repository at this path.")
return 1

if args.LVE_NAME is None:
Expand Down
1 change: 1 addition & 0 deletions lve-tools/lve_tools/lve/cli/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ async def main(args):
lve = LVE.from_path(args.LVE_PATH)
except NoSuchLVEError:
print(f"Error: No such LVE: {args.LVE_PATH}")
print("\nMake sure you have cloned a copy of an LVE repository at this path.")
return 1
except InvalidLVEError as e:
print(f"Error: Invalid LVE: {args.LVE_PATH}")
Expand Down
1 change: 1 addition & 0 deletions lve-tools/lve_tools/lve/cli/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ async def main(args):
except NoSuchLVEError as e:
print(e)
print(f"Error: No such LVE: {args.LVE_PATH}")
print("\nMake sure you have cloned a copy of an LVE repository at this path.")
exit(1)

instances = args.instances
Expand Down
1 change: 1 addition & 0 deletions lve-tools/lve_tools/lve/cli/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def show(path, instance_file=None):

# otherwise, print error
print(f"Error: No such LVE: {path}")
print("\nMake sure you have cloned a copy of an LVE repository at this path.")
return 1
except InvalidLVEError as e:
print(f"Error: Invalid LVE: {path}")
Expand Down

0 comments on commit 934c1cc

Please # to comment.