From 6a408e8404be439e69cfc302bd4d59ab7a0bc8ba Mon Sep 17 00:00:00 2001 From: derrod Date: Fri, 31 Dec 2021 18:56:52 +0100 Subject: [PATCH] [cli] Log prefix used / error if it doesn't exist --- legendary/cli.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/legendary/cli.py b/legendary/cli.py index 20659c0..dadecef 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -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)