Panic on unknown user event type

This should never happen. Complain loudly if it does.

git-svn-id: file:///srv/svn/repo/suika/trunk@494 f0ae65fe-ee39-954e-97ec-027ff2717ef4
This commit is contained in:
contact 2021-04-13 11:08:48 +00:00
parent 63c2238407
commit fec819c48a

View File

@ -583,7 +583,7 @@ func (u *user) run() {
}
return
default:
u.logger.Printf("received unknown event type: %T", e)
panic(fmt.Sprintf("received unknown event type: %T", e))
}
}
}