diff --git a/babelizer/errors.py b/babelizer/errors.py index edf1abd..d478790 100644 --- a/babelizer/errors.py +++ b/babelizer/errors.py @@ -35,7 +35,9 @@ class ScanError(BabelizeError): class OutputDirExistsError(BabelizeError): """An exception used when the directory for babelized output exists.""" - pass + def __str__(self) -> str: + """Render a user-readable error message.""" + return f"output directory exists: {self._message}" class SetupPyError(BabelizeError):