commit 8fe2102

delthas  ·  2023-11-15 13:55:38 +0000 UTC
parent 28fb1bc
Add additional debug for messages of unknown sessions

See: https://todo.sr.ht/~taiite/senpai/120
1 files changed,  +1, -1
M app.go
M app.go
+1, -1
1@@ -763,7 +763,7 @@ func (app *App) handleIRCEvent(netID string, ev interface{}) {
2 	}
3 	s, ok := app.sessions[netID]
4 	if !ok {
5-		panic("unreachable")
6+		panic(fmt.Sprintf("cannot found session %q for message %q", netID, msg.String()))
7 	}
8 
9 	// Mutate IRC state