mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +00:00
[cli] Log prefix used / error if it doesn't exist
This commit is contained in:
parent
8a9ca14391
commit
6a408e8404
|
@ -1982,6 +1982,12 @@ class LegendaryCLI:
|
|||
logger.error('Need either config default, --prefix, --bottle, or --app to install the overlay to.')
|
||||
return
|
||||
|
||||
if not os.path.exists(prefix):
|
||||
logger.error(f'Prefix "{prefix}" does not exist.')
|
||||
return
|
||||
else:
|
||||
logger.info(f'Using prefix "{prefix}"')
|
||||
|
||||
if args.action == 'info':
|
||||
reg_paths = query_registry_entries(prefix)
|
||||
available_installs = self.core.search_overlay_installs(prefix)
|
||||
|
|
Loading…
Reference in a new issue