Skip to content

Commit

Permalink
refactor(WVD): Print error if path to parse doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaphoenix committed Apr 1, 2024
1 parent 3659c81 commit a053423
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions devine/commands/wvd.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ def parse(path: Path) -> None:

log = logging.getLogger("wvd")

if not path.exists():
console.log(f"[bright_blue]{path.absolute()}[/] does not exist...")
return

device = Device.load(path)

log.info(f"System ID: {device.system_id}")
Expand Down

0 comments on commit a053423

Please sign in to comment.