Houmgaor
f640cfee27
fix: log SJIS decoding errors instead of silently discarding them
...
Add SJISToUTF8Lossy() that wraps SJISToUTF8() and logs decode errors at
slog.Debug level. Replace all 31 call sites across 17 files that previously
discarded the error with `_, _ =`. This makes garbled text from malformed
SJIS client data debuggable without adding noise at default log levels.
2026-02-22 17:01:22 +01:00
Houmgaor
d32e77efba
refactor: replace panic calls with structured error handling
...
Replace ~25 panic() calls in non-fatal code paths with proper
s.logger.Error + return patterns. Panics in handler code crashed
goroutines (caught by defer/recover but still disruptive) instead
of failing gracefully.
Key changes:
- SJISToUTF8 now returns (string, error); all 30+ callers updated
- Handler DB/IO panics replaced with log + return/ack fail
- Unhandled switch-case panics replaced with logger.Error
- Sign server Accept() panic replaced with log + continue
- Dead unreachable panic in guild_model.go removed
- deltacomp patch error logs and returns partial data
Panics intentionally kept: ByteFrame sentinel, unimplemented
packet stubs, os.Exit in main.go.
2026-02-20 19:11:41 +01:00
wish
b969c53f3a
fix Warehouse packet parsing
2024-02-21 02:09:42 +11:00
wish
a9f280a2ef
initial warehouse-v2 concept commit
2023-10-01 03:17:51 +11:00
wish
86cb254d1a
initial warehouse concept
2022-08-15 15:12:50 +10:00
wish
2c0e7a5267
repository cleanup
2022-07-29 03:25:23 +10:00