diff --git a/claude_setup.sh b/claude_setup.sh index 2816336..355d2c8 100755 --- a/claude_setup.sh +++ b/claude_setup.sh @@ -305,7 +305,7 @@ _handle_api_response() { ;; 400) _emsg=$(_claude_extract_error "$body") - if echo "$_emsg" | grep -qi "RESOURCE_EXHAUSTED"; then + if echo "${_emsg:-$body}" | grep -qi "RESOURCE_EXHAUSTED"; then echo "" echo -e "\033[0;33m[КВОТА ИСЧЕРПАНА]\033[0m Лимит запросов исчерпан." [ -n "$topup_url" ] && echo " $topup_url"