fix: 런처 안정성 개선 (4건)
Some checks failed
CI/CD / test (push) Has been cancelled
CI/CD / release (push) Has been cancelled

- ticket JSON 직렬화 json.Marshal 사용 (특수문자 안전)
- 4xx 에러 메시지 "서버 오류"→"요청 실패" 수정
- 자동 업데이트 실패 시 stderr 로깅 추가
- 서버 URL을 ldflags로 오버라이드 가능하도록 var 전환

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-18 23:26:41 +09:00
parent d55be620bd
commit b026520b35
2 changed files with 14 additions and 5 deletions

View File

@@ -73,7 +73,7 @@ func handleURI(rawURI string) error {
// 런처 자동 업데이트 체크
if updated, updateErr := ensureLauncher(serverInfo); updateErr != nil {
_ = updateErr // 업데이트 실패는 치명적이지 않음
fmt.Fprintf(os.Stderr, "런처 업데이트 실패: %v\n", updateErr)
} else if updated {
cmd := exec.Command(os.Args[0], os.Args[1:]...)
if err := cmd.Start(); err != nil {