Output API JSON on errors (without -q). Move config file.

This commit is contained in:
Darren 'Tadgy' Austin 2023-11-02 12:07:33 +00:00
commit aba95700dc
2 changed files with 1 additions and 0 deletions

View file

@ -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