mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-27 09:58:10 +01:00
Fixed docstrings
This commit is contained in:
parent
0fa2555b41
commit
975bca6883
1 changed files with 2 additions and 5 deletions
|
@ -6,16 +6,13 @@ from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
class TomlErrors: # pylint: disable=[R0903]
|
class TomlErrors: # pylint: disable=[R0903]
|
||||||
|
"""Raise an error message for toml files."""
|
||||||
"""
|
|
||||||
Raise an error message for toml files.
|
|
||||||
"""
|
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
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. """
|
"""A 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