Unverified Commit 8697972d authored by neil's avatar neil Committed by GitHub
Browse files

Merge pull request #1669 from Neilpang/dev

check UNABLE_TO_AUTHENTICATE
parents 084de9d8 f90a2ae1
...@@ -168,5 +168,9 @@ _gd_rest() { ...@@ -168,5 +168,9 @@ _gd_rest() {
return 1 return 1
fi fi
_debug2 response "$response" _debug2 response "$response"
if _contains "$response" "UNABLE_TO_AUTHENTICATE"; then
_err "It seems that your api key or secret is not correct."
return 1
fi
return 0 return 0
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment