=== modified file 'bin/confz' --- bin/confz 2014-06-19 19:11:57 +0000 +++ bin/confz 2014-06-19 19:06:53 +0000 @@ -145,7 +145,7 @@ # confz_${name}_check # set -x # fi - die "$name: check failed: ${fail_reason:-error $check_ret}" + die "$name: check failed with error $check_ret: $fail_reason" else confz_do "${do_command[@]}" "$@" @@ -159,14 +159,12 @@ check_only_prev=$check_only check_only=1 confz_${name}_check "$@" || \ - die "$name: check failed: ${fail_reason:-error $?}" + die "$name: check failed with error $?: $fail_reason" confz_check_ok $name check_only=$check_only_prev fi fi - # clear fail_reason - fail_reason='' # restore $do_command do_command=( "${do_command_prev[@]}" )