[cli] egl-sync: Error out if asset information missing

This commit is contained in:
derrod 2021-01-02 06:31:47 +01:00
parent a25307da71
commit 58edb22fce

View file

@ -911,6 +911,11 @@ class LegendaryCLI:
self.core.lgd.config.remove_option('Legendary', 'egl_sync')
return
if not self.core.lgd.assets:
logger.error('Legendary is missing game metadata, please login (if not already) and use the '
'"status" command to fetch necessary information to set-up syncing.')
return
if not self.core.egl.programdata_path:
if not args.egl_manifest_path and not args.egl_wine_prefix:
# search default Lutris install path