Fix error args
This commit is contained in:
parent
288e3dacd6
commit
74c4c7dbbf
|
@ -4,13 +4,13 @@ class AmanuensisError(Exception):
|
|||
class MissingConfigError(AmanuensisError):
|
||||
"""A config file is missing that was expected to be present"""
|
||||
def __init__(self, path):
|
||||
super().__init__(self, "A config file or directory was expected to "
|
||||
super().__init__("A config file or directory was expected to "
|
||||
f"exist, but could not be found: {path}")
|
||||
|
||||
class ConfigAlreadyExistsError(AmanuensisError):
|
||||
"""Attempted to create a config, but it already exists"""
|
||||
def __init__(self, path):
|
||||
super().__init__(self, "Attempted to create a config, but it already "
|
||||
super().__init__("Attempted to create a config, but it already "
|
||||
f"exists: {path}")
|
||||
|
||||
class MalformedConfigError(AmanuensisError):
|
||||
|
|
Loading…
Reference in New Issue