From dc0e568c04c443a8296c64ac893a11d3b765dfbc Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 4 Dec 2023 14:41:26 +0100 Subject: [PATCH] add error message to ValueError --- src/env_file_helper.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/env_file_helper.py b/src/env_file_helper.py index 4a7d3eb..9ce4f77 100644 --- a/src/env_file_helper.py +++ b/src/env_file_helper.py @@ -1,8 +1,6 @@ from pathlib import Path from typing import NamedTuple -from loguru import logger - class EnvFile(NamedTuple): env_path: Path @@ -55,5 +53,6 @@ def sort_env_files_by_rule(env_list: list[EnvFile], rules: list[DependencyRule]) if all(rule_satisfied): return in_list - logger.error("could not find order that satisfys all rules") - raise ValueError + raise ValueError( + "Could not resolve test order. This is possibly due to a circular dependency (a on b, b on c, c on a)" + )