Skip to content

Commit

Permalink
better error message for existing output dir
Browse files Browse the repository at this point in the history
  • Loading branch information
mcflugen committed Apr 1, 2024
1 parent a2232ab commit 57a9353
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion babelizer/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 57a9353

Please sign in to comment.