From a198729ba97486691bd03ea77b532b340f759221 Mon Sep 17 00:00:00 2001 From: CodeDevMLH Date: Tue, 10 Dec 2024 02:28:08 +0100 Subject: [PATCH] .. --- customize-WebUI.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/customize-WebUI.py b/customize-WebUI.py index caf1584..5f5977b 100644 --- a/customize-WebUI.py +++ b/customize-WebUI.py @@ -30,16 +30,16 @@ def loadConfig(configPath): if not config: raise ValueError("Empty configuration file") - print("Configuration loaded successfully.") + print(f"{Colors.GREEN}Configuration loaded successfully.{Colors.RESET}") return config except FileNotFoundError: - print(f"Error: Configuration file not found at ./{configPath}") + print(f"{Colors.RED}Error: Configuration file not found at ./{configPath}{Colors.RESET}") sys.exit(1) except yaml.YAMLError as e: - print(f"Error parsing YAML configuration: {e}") + print(f"{Colors.RED}Error parsing YAML configuration: {e}{Colors.RESET}") sys.exit(1) except ValueError as e: - print(f"Configuration error: {e}") + print(f"{Colors.RED}Configuration error: {e}{Colors.RESET}") sys.exit(1)