mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-21 17:13:09 +08:00
Print command line options if run_command() failed.
This commit is contained in:
parent
7d17b72ba5
commit
3b436a72c5
@ -79,7 +79,7 @@ run_command() {
|
|||||||
shift
|
shift
|
||||||
tlog "[$(date)] ${cmd} $@"
|
tlog "[$(date)] ${cmd} $@"
|
||||||
if ! "${cmd}" "$@" 2>&1 | tee -a "${LOG_FILE}"; then
|
if ! "${cmd}" "$@" 2>&1 | tee -a "${LOG_FILE}"; then
|
||||||
err_exit "Program $(basename ${cmd}) failed. Abort."
|
err_exit "Program $(basename ${cmd}) failed. Abort. Command line: ${cmd} $@"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user