fix get error code

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2020-06-09 22:54:09 +02:00
parent 6d940c7cc8
commit 7790e47a7e

View File

@ -11,7 +11,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#
#### $$VERSION$$ v0.96-pre-17-gdeeef7e
#### $$VERSION$$ v0.96-pre-18-g6d940c7
#
# Exit Codes:
# - 0 sucess (hopefully)
@ -389,7 +389,7 @@ sendJsonResult(){
else
# oops something went wrong!
if [ "${res}" != "" ]; then
BOTSENT[ERROR]="$(JsonGeOtValue '"error_code"' <<< "${1}")"
BOTSENT[ERROR]="$(JsonGetValue '"error_code"' <<< "${1}")"
BOTSENT[DESCRIPTION]="$(JsonGetString '"description"' <<< "${1}")"
BOTSENT[RETRY]="$(JsonGetValue '"parameters","retry_after"' <<< "${1}")"
else