mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-16 07:47:35 +01:00
Fixed D401
This commit is contained in:
parent
f1e0b234f6
commit
3c3441f42c
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ class TomlErrors: # pylint: disable=[R0903]
|
||||||
self.tool_name: str = 'slpkg'
|
self.tool_name: str = 'slpkg'
|
||||||
|
|
||||||
def raise_toml_error_message(self, error: str, toml_file: Path) -> None:
|
def raise_toml_error_message(self, error: str, toml_file: Path) -> None:
|
||||||
"""A general error message for .toml configs files."""
|
"""General error message for toml configs files."""
|
||||||
raise SystemExit(f"\n{self.tool_name}: Error: {error}: in the configuration\n"
|
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"
|
f"file '{toml_file}', edit the file and check for errors,\n"
|
||||||
f"or if you have upgraded the '{self.tool_name}' maybe you need to run:\n"
|
f"or if you have upgraded the '{self.tool_name}' maybe you need to run:\n"
|
||||||
|
|
Loading…
Reference in a new issue