From 58edb22fcebc82fb644a00f7124face3f23e387c Mon Sep 17 00:00:00 2001 From: derrod Date: Sat, 2 Jan 2021 06:31:47 +0100 Subject: [PATCH] [cli] egl-sync: Error out if asset information missing --- legendary/cli.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/legendary/cli.py b/legendary/cli.py index 999492c..de1345d 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -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