diff --git a/slpkg/toml_errors.py b/slpkg/toml_errors.py index 82e6bf2f..133ce6b9 100644 --- a/slpkg/toml_errors.py +++ b/slpkg/toml_errors.py @@ -2,12 +2,17 @@ # -*- coding: utf-8 -*- +from pathlib import Path + + class TomlErrors: + """ Raise ean error message for toml files. + """ def __init__(self): self.tool_name: str = 'slpkg' - def raise_toml_error_message(self, error, toml_file) -> None: + def raise_toml_error_message(self, error: str, toml_file: Path) -> None: """ A general error message for .toml configs files. """ raise SystemExit(f"\n{self.tool_name}: Error: {error}: in the configuration\n" f"file '{toml_file}', edit the file and check for errors,\n"