network check and text output
diff --git a/cfg_checker/cfg_check.py b/cfg_checker/cfg_check.py
index 8a05771..02205ea 100644
--- a/cfg_checker/cfg_check.py
+++ b/cfg_checker/cfg_check.py
@@ -1,6 +1,7 @@
import argparse
import os
import sys
+import traceback
from logging import INFO, DEBUG
import reporter
@@ -134,4 +135,12 @@
try:
config_check_entrypoint()
except Exception as e:
- logger_cli.error("ERROR: {}".format(e.message))
+ exc_type, exc_value, exc_traceback = sys.exc_info()
+ logger_cli.error("\nERROR: {}\n\n{}".format(
+ e.message,
+ "".join(traceback.format_exception(
+ exc_type,
+ exc_value,
+ exc_traceback
+ ))
+ ))