Output API JSON on errors (without -q). Move config file.
This commit is contained in:
parent
82842e8685
commit
aba95700dc
2 changed files with 1 additions and 0 deletions
|
@ -691,6 +691,7 @@ if [[ "$JSON" =~ \"status\":1, ]]; then
|
|||
(( CONFIG_QUIET == 0 )) && printf "%s\\n" "$JSON"
|
||||
else
|
||||
printf "%s: %s\\n" "${0##*/}" "API returned a non-success status code" >&2
|
||||
(( CONFIG_QUIET == 0 )) && printf "%s\\n" "$JSON" >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue