Overview
Comment: | Better error handling |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: | f2566d10e234a256dbcf02e9ca3fca929dd56105 |
User & Date: | rkeene on 2019-02-28 10:29:12 |
Other Links: | manifest | tags |
Context
2019-04-10
| ||
16:05 | Upgrade TclTLS to 1.7.17 check-in: e6ede3bbb5 user: rkeene tags: trunk | |
2019-02-28
| ||
10:29 | Better error handling check-in: f2566d10e2 user: rkeene tags: trunk | |
10:19 | More better API check-in: f8c7c20a57 user: rkeene tags: trunk | |
Changes
Modified build/utils/download-api-client from [8826872ee9] to [45c8f50b64].
4 4 endpoint_url="https://kitcreator.rkeene.org/kitcreator" 5 5 6 6 # Help 7 7 function print_help() { 8 8 echo 'download-api-client [--platform <platform>] [--tcl-version <version>]' 9 9 echo ' [--kitcreator-version <version>] [--kitdll]' 10 10 echo ' [--threaded] [--debug] [--dynamictk]' 11 - echo ' [--staticpkgs]' 11 + echo ' [--staticpkgs] [--verbose]' 12 12 echo 'download-api-client {--help|--platforms|--tcl-versions|' 13 13 echo ' --kitcreator-versions|--packages}' 14 14 } 15 15 16 16 # Set arguments 17 17 declare -A jsonArgs 18 18 jsonArgs["platform"]="$(uname -s)-$(uname -m)" 19 19 20 20 nextArg='' 21 21 kit_filename='' 22 22 options=() 23 +internalOptionsVerbose='false' 23 24 for arg in "$@"; do 24 25 if [ -n "${nextArg}" ]; then 25 26 jsonArgs["${nextArg}"]="${arg}" 26 27 nextArg='' 27 28 continue 28 29 fi 29 30 30 31 case "${arg}" in 32 + --verbose) 33 + internalOptionsVerbose='true' 34 + ;; 31 35 --platform|--tcl-version|--kitcreator-version) 32 36 nextArg="${arg:2}" 33 37 nextArg="${nextArg//-/_}" 34 38 ;; 35 39 --kitdll|--threaded|--debug|--dynamictk|--staticpkgs) 36 40 options+=("${arg:2}") 37 41 ;; ................................................................................ 109 113 build_log_url="$(jq -crM .build_log_url <<<"${info}")" 110 114 111 115 if [ -n "${buildStatusWroteHeader}" ]; then 112 116 echo " ${status}" 113 117 fi 114 118 115 119 if [ "${status}" != "complete" ]; then 116 - echo "failed: ${status}" >&2 117 - curl -sSL "${build_log_url}" >&2 120 + echo "${status}: Build terminated in error" >&2 121 + if [ "${internalOptionsVerbose}" = 'true' ]; then 122 + curl -sSL "${build_log_url}" >&2 123 + fi 118 124 119 125 exit 1 120 126 fi 121 127 122 128 kit_url="$(jq -crM .kit_url <<<"${info}")" 123 129 if [ -z "${kit_filename}" ]; then 124 130 kit_filename="${kit_url//*\//}"