diff --git a/ghconf/main.py b/ghconf/main.py index 0cada07..334df65 100644 --- a/ghconf/main.py +++ b/ghconf/main.py @@ -173,7 +173,8 @@ def main() -> None: else: raise utils.ErrorMessage("Module %s has no `entry_point` top-level variable" % module) except ImportError as e: - raise utils.ErrorMessage("Can't import module %s (use --debug for more information)" % module) from e + print_error("Can't import module %s" % module) + raise e parser = ArgumentParser(description="ghconf is a tool that parses declarative configuration files in a Python DSL " "and then runs Python modules against a preconfigured PyGithub instance. This "