Browse Source

check UNABLE_TO_AUTHENTICATE

neilpang 7 năm trước cách đây
mục cha
commit
f90a2ae195
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      dnsapi/dns_gd.sh

+ 4 - 0
dnsapi/dns_gd.sh

@@ -168,5 +168,9 @@ _gd_rest() {
     return 1
   fi
   _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
 }