From 3b436a72c55107faf694baec2f14a542958e32c6 Mon Sep 17 00:00:00 2001 From: Tadahito Yao Date: Mon, 22 Mar 2021 20:46:44 +0900 Subject: [PATCH] Print command line options if run_command() failed. --- src/training/tesstrain_utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/training/tesstrain_utils.sh b/src/training/tesstrain_utils.sh index 172457fb4..9e0c9637a 100644 --- a/src/training/tesstrain_utils.sh +++ b/src/training/tesstrain_utils.sh @@ -79,7 +79,7 @@ run_command() { shift tlog "[$(date)] ${cmd} $@" 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 }