Raise error instead of warning for visibility

This commit is contained in:
litagin02
2024-02-25 18:56:45 +09:00
parent 9d6a1db0e9
commit d3a5cb8569

View File

@@ -151,7 +151,10 @@ def preprocess(
with open(config_path, "w", encoding="utf-8") as f:
json.dump(json_config, f, indent=2, ensure_ascii=False)
if error_count > 0:
logger.warning(
logger.error(
f"An error occurred in {error_count} lines. Please check {error_log_path} for details. You can proceed with lines that do not have errors."
)
raise Exception(
f"An error occurred in {error_count} lines. Please check {error_log_path} for details. You can proceed with lines that do not have errors."
)
else: