~emersion/soju

6e79a941729f76c0f093936a888c453e450cdfc4 — Simon Ser 24 days ago 967bb41
server: print error on getOrCreateUser failure
1 files changed, 1 insertions(+), 0 deletions(-)

M server.go
M server.go => server.go +1 -0
@@ 491,6 491,7 @@ func (s *Server) Handle(ic ircConn) {

	user, err := s.getOrCreateUser(context.TODO(), dc.registration.authUsername)
	if err != nil {
		dc.logger.Printf("failed to get/create user: %v", err)
		dc.SendMessage(context.TODO(), &irc.Message{
			Command: "ERROR",
			Params:  []string{"Internal server error"},