[cli] list-files: Error out of invalid AppName specified

Closes #94
This commit is contained in:
derrod 2020-09-09 09:53:05 +02:00
parent b8b8a5d953
commit 515705c061

View file

@ -250,6 +250,9 @@ class LegendaryCLI:
logger.error('Login failed! Cannot continue with download process.')
exit(1)
game = self.core.get_game(args.app_name, update_meta=True)
if not game:
logger.fatal(f'Could not fetch metadata for "{args.app_name}" (check spelling/account ownership)')
exit(1)
manifest_data, _ = self.core.get_cdn_manifest(game, platform_override=args.platform_override)
manifest = self.core.load_manifest(manifest_data)