mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[cli] Error out if no overlay installs found
This commit is contained in:
parent
66a30d6b2a
commit
cf95da395c
|
@ -2123,6 +2123,9 @@ class LegendaryCLI:
|
||||||
args.path = igame.install_path
|
args.path = igame.install_path
|
||||||
else:
|
else:
|
||||||
available_installs = self.core.search_overlay_installs(prefix)
|
available_installs = self.core.search_overlay_installs(prefix)
|
||||||
|
if not available_installs:
|
||||||
|
logger.error('No EOS overlay installs found!')
|
||||||
|
return
|
||||||
args.path = available_installs[0]
|
args.path = available_installs[0]
|
||||||
|
|
||||||
if not self.core.is_overlay_install(args.path):
|
if not self.core.is_overlay_install(args.path):
|
||||||
|
|
Loading…
Reference in a new issue