Commit aa5dc5a8 authored by Blaise Li's avatar Blaise Li
Browse files

More informative failure message.

parent 5ff10a86
......@@ -75,6 +75,6 @@ mkdir -p ${output_dir}
log_base="${output_dir}/$(date +"%d%m%y_%Hh%Mm")"
echo ${cmd} > ${log_base}.log
eval ${cmd} > >(tee -a ${log_base}.log) 2> >(tee -a ${log_base}.err >&2) || error_exit "${cmd} failed"
eval ${cmd} > >(tee -a ${log_base}.log) 2> >(tee -a ${log_base}.err >&2) || error_exit "${cmd} failed, see ${log_base}.err"
exit 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment