diff options
Diffstat (limited to '')
-rw-r--r-- | project/toolchain.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/project/toolchain.py b/project/toolchain.py index d931c6b..4d10872 100644 --- a/project/toolchain.py +++ b/project/toolchain.py @@ -31,7 +31,7 @@ class ToolchainType(Enum): CLANG_CL = 'clang-cl' def __str__(self): - return self.value + return str(self.value) @staticmethod def all(): @@ -41,5 +41,5 @@ class ToolchainType(Enum): def parse(s): try: return ToolchainType(s) - except ValueError: - raise argparse.ArgumentTypeError(f'invalid toolset: {s}') + except ValueError as e: + raise argparse.ArgumentTypeError(f'invalid toolset: {s}') from e |