Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
improve errors (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpcusack-color authored Jun 30, 2021
1 parent 9cc8595 commit 77cde50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion clr/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import shutil
import argparse
from itertools import takewhile
import traceback

import clr.config

Expand Down Expand Up @@ -398,9 +399,10 @@ def descr(self):

@property
def longdescr(self):
tb = ''.join(traceback.TracebackException.from_exception(self.error).format())
return (
f"Error importing module '{NAMESPACE_MODULE_PATHS[self.key]}' for namespace "
f"'{self.key}':\n\n{self.error}"
f"'{self.key}':\n\n{type(self.error).__name__} {self.error}\n{tb}"
)


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name="clr",
version="0.3.8",
version="0.3.9",
description="A command line tool for executing custom python scripts.",
author="Color",
author_email="dev@getcolor.com",
Expand Down

0 comments on commit 77cde50

Please sign in to comment.