watchtower/wtserver/create_session: log missing error in create session

This commit is contained in:
Conner Fromknecht 2019-04-26 17:22:02 -07:00
parent b7cd70f186
commit 54c908be1a
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

@ -102,7 +102,7 @@ func (s *Server) handleCreateSession(peer Peer, id *wtdb.SessionID,
// successful, the session will now be ready for use.
err = s.cfg.DB.InsertSessionInfo(&info)
if err != nil {
log.Errorf("unable to create session for %s", id)
log.Errorf("Unable to create session for %s: %v", id, err)
return s.replyCreateSession(
peer, id, wtwire.CodeTemporaryFailure, 0, nil,
)