kopia lustrzana https://github.com/OpenDroneMap/ODM
Exit gracefully on system.run() error
rodzic
b807b07920
commit
0c83dae656
|
@ -30,6 +30,10 @@ def ODM_ERROR(str):
|
||||||
logging.error(str)
|
logging.error(str)
|
||||||
|
|
||||||
|
|
||||||
|
def ODM_EXCEPTION(str):
|
||||||
|
logging.exception(str)
|
||||||
|
|
||||||
|
|
||||||
def ODM_DEBUG(str):
|
def ODM_DEBUG(str):
|
||||||
logging.debug(str)
|
logging.debug(str)
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,7 @@ def run(cmd):
|
||||||
if (returnCode != 0):
|
if (returnCode != 0):
|
||||||
log.ODM_ERROR("quitting cause: \n\t" + cmd + "\nreturned with code " +
|
log.ODM_ERROR("quitting cause: \n\t" + cmd + "\nreturned with code " +
|
||||||
str(returnCode) + ".\n")
|
str(returnCode) + ".\n")
|
||||||
|
sys.exit('An error occurred. Check stdout above or the logs.')
|
||||||
|
|
||||||
|
|
||||||
def now():
|
def now():
|
||||||
|
|
Ładowanie…
Reference in New Issue