Skip to content

Commit d377426

Browse files
committed
as per review
Signed-off-by: Andrew Thornton <[email protected]>
1 parent ae63560 commit d377426

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

services/auth/source/oauth2/store.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"fmt"
99
"net/http"
1010

11+
"code.gitea.io/gitea/modules/log"
1112
chiSession "gitea.com/go-chi/session"
1213
"github.com/gorilla/sessions"
1314
)
@@ -47,7 +48,8 @@ func (st *SessionsStore) getOrNew(r *http.Request, name string, override bool) (
4748

4849
return session, nil
4950
} else if !override {
50-
return nil, fmt.Errorf("unexpected object in session: %v at name: %s", rawData, name)
51+
log.Error("Unexpected object in session at name: %s: %v", name, rawData)
52+
return nil, fmt.Errorf("unexpected object in session at name: %s", name)
5153
}
5254
}
5355

0 commit comments

Comments
 (0)