mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-22 07:32:32 +01:00
fix(channelserver): handle silently discarded errors across handlers
Replace ~17 instances of '_ =' / '_ :=' with proper error checks that log warnings or send fail ACKs. Affected handlers: cafe, distitem, data, guild, guild_board, guild_cooking, guild_scout, house, mercenary, misc, and rengoku. Also resolves all pre-existing lint issues: unchecked bf.Seek in tests, unused filtered slice in svc_festa, unused mock fields, and unused signserver test helper.
This commit is contained in:
@@ -199,7 +199,10 @@ type RengokuScore struct {
|
||||
func handleMsgMhfEnumerateRengokuRanking(s *Session, p mhfpacket.MHFPacket) {
|
||||
pkt := p.(*mhfpacket.MsgMhfEnumerateRengokuRanking)
|
||||
|
||||
guild, _ := s.server.guildRepo.GetByCharID(s.charID)
|
||||
guild, guildErr := s.server.guildRepo.GetByCharID(s.charID)
|
||||
if guildErr != nil {
|
||||
s.logger.Warn("Failed to get guild for rengoku ranking", zap.Error(guildErr))
|
||||
}
|
||||
var isApplicant bool
|
||||
if guild != nil {
|
||||
var appErr error
|
||||
|
||||
Reference in New Issue
Block a user