From 90fcc0f94ef4dafd0b8c82c9fbeea7d3db430d56 Mon Sep 17 00:00:00 2001 From: tolelom <98kimsungmin@naver.com> Date: Tue, 24 Feb 2026 23:38:24 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=84=9C=EB=B2=84=20=EC=83=81=ED=83=9C?= =?UTF-8?q?=20=EC=BD=94=EB=93=9C=EB=B3=84=20=EB=AA=85=ED=99=95=ED=95=9C=20?= =?UTF-8?q?=EC=97=90=EB=9F=AC=20=EB=A9=94=EC=8B=9C=EC=A7=80=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 404: 게임이 아직 준비되지 않았습니다 - 4xx/5xx: 서버 오류 (HTTP 상태코드) - JSON 파싱 실패는 진짜 비정상 응답일 때만 표시 Co-Authored-By: Claude Sonnet 4.6 --- main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.go b/main.go index 56cb06b..22f6cfd 100644 --- a/main.go +++ b/main.go @@ -331,6 +331,13 @@ func fetchServerInfo() (*downloadInfo, error) { } defer resp.Body.Close() + if resp.StatusCode == 404 { + return nil, fmt.Errorf("게임이 아직 준비되지 않았습니다") + } + if resp.StatusCode >= 400 { + return nil, fmt.Errorf("서버 오류 (HTTP %d)", resp.StatusCode) + } + var info downloadInfo if err := json.NewDecoder(resp.Body).Decode(&info); err != nil { return nil, fmt.Errorf("서버 응답 파싱 실패: %w", err)