diff --git a/opendm/log.py b/opendm/log.py index f5cd2095..68211ab8 100644 --- a/opendm/log.py +++ b/opendm/log.py @@ -30,6 +30,10 @@ def ODM_ERROR(str): logging.error(str) +def ODM_EXCEPTION(str): + logging.exception(str) + + def ODM_DEBUG(str): logging.debug(str) diff --git a/opendm/system.py b/opendm/system.py index 955c78c8..e00736e8 100644 --- a/opendm/system.py +++ b/opendm/system.py @@ -23,6 +23,7 @@ def run(cmd): if (returnCode != 0): log.ODM_ERROR("quitting cause: \n\t" + cmd + "\nreturned with code " + str(returnCode) + ".\n") + sys.exit('An error occurred. Check stdout above or the logs.') def now():